Chinaunix首页 | 论坛 | 博客
  • 博客访问: 421053
  • 博文数量: 120
  • 博客积分: 3125
  • 博客等级: 中校
  • 技术积分: 1100
  • 用 户 组: 普通用户
  • 注册时间: 2007-10-29 10:59
文章分类

全部博文(120)

文章存档

2012年(28)

2011年(22)

2010年(34)

2009年(1)

2008年(35)

我的朋友

分类: LINUX

2011-01-17 15:54:15

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 .
 
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/fengguowuhen7871/archive/2010/08/23/5831653.aspx
阅读(2022) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~