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 fengwang act 38 2010-08-10 16:55 desc.txt
drwxr-xr-x 2 fengwang act 2048 2010-08-10 16:57 part0
drwxr-xr-x 2 fengwang 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 .
阅读(2022) | 评论(0) | 转发(0) |