1.原始的android的开机动画,貌似是android的字体然后晃动晃动。

其实这不是动画,只是两张图片。一张mask在上面,下面一张图片在不停的动。

他们在如下目录下

./frameworks/base/core/res/assets/images/android-logo-mask.png

./frameworks/base/core/res/assets/images/android-logo-shine.png。

2.

I suggest that we should use bootanimation.zip instead of default image android-logo-mask.png
in the subsequent product.

I will introduce the bootanimation.zip below, and you can find the two examples in the attachment.
All of you need to do is just to execute a command:
adb push ./bootanimation.zip /data/local/bootanimation.zip

2.1. location of bootanimation.zip

1) /data/local/bootanimation.zip, or
2) /system/media/bootanimation.zip

While power on, handset will retrieve the bootanimation.zip from the location one by one;
If it can not get any of the bootanimation.zip, it will read
android-logo-mask.png,
android-logo-shine.png

2.2. content of bootanimation.zip
It includes two directory and a file.
-rw-r--r-- 1 xwang act 38 2010-08-10 16:55 desc.txt
drwxr-xr-x 2 xwang act 2048 2010-08-10 16:57 part0
drwxr-xr-x 2 xwang act 2048 2010-08-10 16:57 part1

The png images is placed in the directory "part0", "part1".

format of desc.txt, for example
480 800 15
p 1 0 part0
p 0 0 part1

480--width of the image, 800--height of the image, 15--frames of second
p 1, display one time
p 0, display recycling till handset power on finished

The images can be larger than the screen, and the handset will scale them automatically

2.3. how to create the bootanimation.zip
cd ./bootanimation
zip -r -0 bootanimation.zip part0 part1 desc.txt
adb push ./bootanimation.zip /data/local/bootanimation.zip

The -0 parameter is mandotary. It means zip with "store only" mode.

2.4. reboot the handset, you will see the new animation images .

更多相关文章

  1. 转 Android(安卓)Animation学习笔记
  2. android的selector的用法
  3. 系出名门Android(5) - 控件(View)之TextView, Button, ImageButt
  4. 笔记108--shape和selector和layer-list
  5. android常用控件应用之文本框(TextView)特效
  6. Android(安卓)获取手机上图片和视频的缩略图 Android(安卓)thumb
  7. Android中实用小知识
  8. flutter包名,应用名称,图标,启动图片修改
  9. Android(安卓)ListView滑动过程中图片显示重复错位闪烁问题解决

随机推荐

  1. Carrier Configuration in Android 6.0
  2. android jni 调用结构体示例
  3. Android简单实现猜拳游戏
  4. ObservableInt 无法使用
  5. Android(安卓)简单的Http框架
  6. Android — 制作悬浮窗口
  7. Android Media Scanner Process
  8. android折叠展开列表测试
  9. android Dialog无法获取窗口问题闪退
  10. Android Handler leak 分析及解决办法