Tutorial on how to create an animation for an Android phone

Source: Internet
Author: User

Let's talk about how to enable an animation:
Android animation is composed of a series of continuous PNG images as frames.
It is not a GIF image, but a file package that stores the PNG images of each frame in compression mode.
The name of the saved file is bootanimation.zip, which is a zip compressed file. The compression method must be storage compression.
Content of the bootanimation.zip animated file:
It generally contains one file and two directories:
1. animation attribute description file: desc.txt -------- this file is saved in ANSI format. It is used to set the animation pixels (size), frames, flashes, folder names, and so on;
2. The first-stage animation image Directory: part0 ------- stores the PNG Image folder for each frame;
3. The second-stage animation image Directory: Part1 -------- stores the PNG Image folder for each frame;

The command format in desc.txt is as follows (note space ):

480 427 30
P 1 0 part0
P 0 0 Part1

I will explain one by one:
480 427 means the number of resolutions at which the animation is first displayed on the screen. Be sure not to display the X resolution on a screen larger than 7. Otherwise, your screen will not be displayed completely.
30 indicates the number of frames played per second. Take the boot screen as an example. There are 76 images in the part0 folder. The playback time is 76/30 = 2.533333 seconds, of course, there will be a certain delay in the mobile phone, especially when your picture files are relatively large, the mobile phone can't play fast, card ah
The following sections describe how to repeat the image
P 1(Indicates playing once)0(Empty command)Part0*/This command indicates that the image in the part0 folder is played only once by name.
P 0(Replay)0(Empty command)Part1*/This command indicates that the images in the Part1 folder are repeatedly played.

Another method is that commands are not commonly used. Let me explain them.

P 0 10 Part1The 10 in the preceding figure indicates that the picture in the Part1 folder is paused after being played again, and then paused for a while, pause for a moment...
P 1 10 Part1Similarly, this statement indicates that after the image in the Part1 folder is played, it pauses and continues to run a command to scare you.

Android mobile phone boot animation replacement Tutorial:
1. first, your mobile phone is already root, and the system ROM must have the root permission.
2. The mobile phone is installed with the root explorer manager or es Manager (any manager that can obtain the root permission to browse and modify system files ).
3.put bootanimation.zipto the SDK card. (do not unzip this bootanimation.zip file.)
4. use root explorer to mount "read/write" copies to/system/customize/resource or/system/Media (HTC phones with sense are generally only/system/customize/resource, the boot animation for other mobile phones is usually in the system/Media Directory: Huawei may overwrite the boot animation under/Cust/telecom/CN/media.
5. Restart your phone to see the effect.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.