Tool to read and write Android splash screens - G1 Android Development

Hi all,
I have created a plugin for Paint.Net to read and write RGB565 images. RGR565 is the image type which is used for the initial Android boot screen.
Paint.Net will allow you to open any image file PNG, BMP, JPG, then with this plugin you can save it as a RGB565 file. Just make sure the dimensions are 320 x 480. The size of the file in bytes, once saved will then be 2 times the number of pixels 320 x 480 x 2 = 307200.
You can even open an existing RGB565 file. I have not seen any other tool allow you to do this.
Here is the link to the plugin:
http://paintdotnet.forumer.com/viewtopic.php?f=16&t=32219&start=0

Haven't tried it but really great idea =) too bad I'm a fan of GIMP and Photoshop...I just like them more

Good Idea
Good Idea! This definitely saves some steps to those of us who REALLY like to do some customization to our roms. Good job!.

Related

Tool to read and write Android splash screens

Hi all,
I just wanted to share a plugin I have created for Paint.Net to read and write RGB565 images. RGR565 is the image type which is used for the initial Android boot screen.
Paint.Net will allow you to open any image file PNG, BMP, JPG, then with this plugin you can save it as a RGB565 file. Just make sure the dimensions are 320 x 480. The size of the file in bytes, once saved will then be 2 times the number of pixels 320 x 480 x 2 = 307200.
You can even open an existing RGB565 file. I have not seen any other tool allow you to do this.
Here is the link to the plugin:
http://paintdotnet.forumer.com/viewtopic.php?f=16&t=32219&start=0
Sweet work. Very useful.
Confirmed that this .dll will work on x64 install of Paint.NET.
ejohnson0547 said:
Hi all,
I just wanted to share a plugin I have created for Paint.Net to read and write RGB565 images. RGR565 is the image type which is used for the initial Android boot screen.
Paint.Net will allow you to open any image file PNG, BMP, JPG, then with this plugin you can save it as a RGB565 file. Just make sure the dimensions are 320 x 480. The size of the file in bytes, once saved will then be 2 times the number of pixels 320 x 480 x 2 = 307200.
You can even open an existing RGB565 file. I have not seen any other tool allow you to do this.
Here is the link to the plugin:
http://paintdotnet.forumer.com/viewtopic.php?f=16&t=32219&start=0
Click to expand...
Click to collapse
Thank you! Nice work my friend!
Great job, making changes is going to be far easier with this... Thanks for the work

[Q] how do i make boot animation from avi?

i found the coolest thing ever, its avi and almost a minute long. i really want it to become my boot animation, i really dont have any idea how to do it. does anyone have any suggestions for how to get this done? ps - the avi has audio too, and that would be even more awesome to include.
You can create a boot animation from any type of video format even if the format is in flash (swf) what you need is a programs that convert videos to either. Jpg or. PNG file (boot animation can be done using only those two formats) ..... about adding sound to your animation yo need to know if the ROM you are running right now is capable to do audio @ boot if not you wont be able to make it work with sound.
Send from My Draken X
Okay thanks, I'm on it.
only .png picture files
Not sure this is right, I have saved the sequence as jpg images - 1418 of them - to a folder size of 58.4 mb with each image sized 704 X 400. Do they need to match droid x screen size to fill screen? And does my desc.txt really have to be 1418 plus lines? is there an easier way?
Thanks for any help with this, if I can do it I will post it so others might decide to use it.
mattmartin77 said:
only .png picture files
Click to expand...
Click to collapse
Wait, what?
the desc.txt file will have max prob 5 lines
my custom boot animation txt looks like this exactly, but yours would prob be a little different
480 480 15
p 1 0 part0
p 0 0 part1
(480 is the width/height; 15 is the fps; 1= #of times that part loops, 0= not freeze on last image of fps unlike the liberty boot animation which would have a 10)
part0 is a folder that contains the images that would be the non looping part, and part1 is the looping pictures folder
the .png is the file extension of the pictures
mattmartin77 said:
the desc.txt file will have max prob 5 lines
my custom boot animation txt looks like this exactly
480 480 15
p 1 0 part0
p 0 0 part1
(480 is the width/height; 15 is the fps; 1= #of times that part loops, 0= not freeze on last image of fps unlike the liberty boot animation which would have a 10)
Click to expand...
Click to collapse
OH okay I get it. Can the fps be higher? Like 25? And can it not loop? It's like a minute long.
Does the phone start after the boot or when its ready? Like if the boot animation was too long would the phone start without showing it all? And do jpg files not work?
mattmartin77 said:
only .png picture files
Click to expand...
Click to collapse
.jpg format works as well, that what i use to make mine animations
marculous said:
Not sure this is right, I have saved the sequence as jpg images - 1418 of them - to a folder size of 58.4 mb with each image sized 704 X 400. Do they need to match droid x screen size to fill screen? And does my desc.txt really have to be 1418 plus lines? is there an easier way?
Thanks for any help with this, if I can do it I will post it so others might decide to use it.
Click to expand...
Click to collapse
no you dont have to add 1418 of lines create , download one of mine bootanimation and decompress the zip file you see how they work... plus DO NOT USE the NOTEPAD from windows (dont know way but android doesnt like .txt created by this notepad) and download notepad++ from here [url="http://notepad-plus-plus.org/release/5.8.7]Notepad++ (Free)[/url] use that notepad to modified the desc.txt
Okay I think I can do that, going to tackle it after a break.
Okay can't get it to work right. Only plays 2 of the 20 folders, and its choppy. Changed the frame rate to 50 because it played slow. Desc.txt looks like
480 854 50
p 1 0 part0
p 1 0 part1
etc on up to part20
And when it played the aspect ratio was jacked up.
Tried four times.
marculous said:
Okay can't get it to work right. Only plays 2 of the 20 folders, and its choppy. Changed the frame rate to 50 because it played slow. Desc.txt looks like
480 854 50
p 1 0 part0
p 1 0 part1
etc on up to part20
And when it played the aspect ratio was jacked up.
Tried four times.
Click to expand...
Click to collapse
1450 frames is way to much for a Boot Animation (sorry if i didn't mention that before) max i have run is 390 frames @ 120 an still running very tide to the end, i dont know what app are you using to create you frames but if that app give you the options to make for sample 500 frames out of the clip you have that will be better....from there you can start your testing stage and deleted as many necessary frames to make your animation run smooth
P.S. you don't need to create 20 folders for your animation 1 folder is enought for it, 2 folders is more likely when the 2nd folder contains a loop of the animation in question
draken78 said:
1450 frames is way to much for a Boot Animation (sorry if i didn't mention that before) max i have run is 390 frames @ 120 an still running very tide to the end, i dont know what app are you using to create you frames but if that app give you the options to make for sample 500 frames out of the clip you have that will be better....from there you can start your testing stage and deleted as many necessary frames to make your animation run smooth
P.S. you don't need to create 20 folders for your animation 1 folder is enought for it, 2 folders is more likely when the 2nd folder contains a loop of the animation in question
Click to expand...
Click to collapse
Oh. Crap. I read a thread said no more than 3mb per folder. The thing is, I didn't want to loop it.
Let me try this,
Can I make a boot animation that's close to a minute long with an avi as the source, have it play full screen with audio and look good? And if not, how close to what I want can I get?
I'm on apex 1.4.1 and I used avidemux 2.5 to make jpegs from the avi selection.
marculous said:
Oh. Crap. I read a thread said no more than 3mb per folder. The thing is, I didn't want to loop it.
Let me try this,
Can I make a boot animation that's close to a minute long with an avi as the source, have it play full screen with audio and look good? And if not, how close to what I want can I get?
I'm on apex 1.4.1 and I used avidemux 2.5 to make jpegs from the avi selection.
Click to expand...
Click to collapse
actually that really doesnt matter cuz i have some animation over 10 MB in a single folder and still working like a charm.....well like i said 2 folders is more like doing a loop out of one of them, having an AVI as boot animation that will be sweet is Google implement that feature in near future on Android using avi, mpg2 or mp4 as boot animation.
i heard (not sure) that Apex CAN run Boot animation with, i have no way to test it cuz im Running Liberty 1.5 (1.75 very soon) ....
P.S. if you want i can help you out with your animation just send me the Link of the video and ill create one and you can have that one as a reference for future animation of yours
well you can have it be a minute long if you want, but i think that is a long time personally, my custom one is pushing 15 seconds and i think it is long. i was told audio doesnt work on liberty rom. the audio must be named "Android_Audio.mp3" without quotes. it is going to be in the same folder on your phone where the bootanimation.zip is kept, /data/local make sure that the audio file is not in the .zip. the desc must contain a line that says "part 0 1 android" also without quotes. btw 1400 frames is not at all recommendable
draken78 said:
actually that really doesnt matter cuz i have some animation over 10 MB in a single folder and still working like a charm.....well like i said 2 folders is more like doing a loop out of one of them, having an AVI as boot animation that will be sweet is Google implement that feature in near future on Android using avi, mpg2 or mp4 as boot animation.
i heard (not sure) that Apex CAN run Boot animation with, i have no way to test it cuz im Running Liberty 1.5 (1.75 very soon) ....
P.S. if you want i can help you out with your animation just send me the Link of the video and ill create one and you can have that one as a reference for future animation of yours
Click to expand...
Click to collapse
I know apex can run audio at boot, 1.4.1 boots with the thx sound playing. I will send you a link later this evening with the avi. And thanks.
mattmartin77 said:
well you can have it be a minute long if you want, but i think that is a long time personally, my custom one is pushing 15 seconds and i think it is long. i was told audio doesnt work on liberty rom. the audio must be named "Android_Audio.mp3" without quotes. it is going to be in the same folder on your phone where the bootanimation.zip is kept, /data/local make sure that the audio file is not in the .zip. the desc must contain a line that says "part 0 1 android" also without quotes. btw 1400 frames is not at all recommendable
Click to expand...
Click to collapse
I could go with it being shorter, and it doesn't have to include audio, but I know it can.

how to: 1440x800 images

what is the easiest way to make wallpaper images 1440x800 using any image i find online or have already? i would like to make my own. thank you.
Using free GIMP.
If You will download picture smaller then 1440x800 :
- Open it with GIMP
- You need to stretch it to bigger (then 800pix) size (Picture/Resize)
- Copy the one [Ctrl+C]
- Create new blank file [File/New/1440x800]
- Paste previously copied (and stretched) picture [Ctrl+P]
- Cut Frames to targeted size [Layer/Set layer size to picture]
- Save as [xxx.jpg]
I'm only using 960x800 (Wide) & 480x800 (Home,CHTlock,Tabs) and it's OK.
Another free program that makes re-sizing images much simpler is: Irfanview
hi i'm using gimp aswell, but You can use PAINT which You have in Your system (vista or win7) not sure that the older version (XP) have crop or resize tool. Cheers
I hear you can also use photobucket but cant confirm that.
then again photoshop is a lovely tool.
thanks guys, i thought i could do it with paint. but gimp is free anyway so maybe i'll get it. could i just google search for pics in the size i want also?

[I9003][MOD]Create Your Own Bootanimation (sanim.zip) (I9003 Gingerbread)

This thread is about on how to make your own bootanimation for your I9003 Gingerbread.
BASIC
Inside the sanim.zip file
If you extract the contents of the sanim.zip file to your computer, you will see:
- A desc.txt file
- A part0 folder (Contains PNG images named in incremental numbers)
More part1, part2 etc. folders (May or may not be present)
As you can see, sanim.zip merely contains one text file and one or more folders with PNG images. The animation is played simply by displaying the images in a sequence, and the text file defines how they are to be played. In essence, first the PNG files in the part0 folder are displayed one after the other and afterwards, those in the part1 file – if it exists – are displayed, again one after the other, and so on.
The folders
These contain PNG images named in numbers, starting from something like 0000.png or 00001.png and proceeding with increments of 1. There has to be at least one folder, and there is no known upper limit to the number of folders.
The desc.txt file
This file defines how the images in the folder(s) are displayed during the boot animation, in the following format:
Width Height Frame-rate
p Loop Pause Folder1
p Loop Pause Folder2
An example of a desc.txt file is:
480 800 30
p 1 0 part0
p 0 0 part1
As you can see, in the first line, 480 and 800 define the width and height of the boot animation in pixels for this example. This must be the same as the screen resolution of your device for the boot animation to properly play in full screen. 30 is the frame rate in fps (frames per second) i.e. number of images to display per second. (resolution for I9003 is 480x800)
The second and third lines have a same format, start with p, which stands for a part of the animation and end in part0 or part1, which denotes the folder in which the images for that part are present.
The number after ‘p’ defines how many times this part will loop (repeat playback) before switching to the next part (if present). Specifying 0 would make the part loop indefinitely till the phone has fully booted.
The next number is for the pause, and is expressed in the number of frames, which can be translated into time by dividing it by the frame rate. A pause of 15 for example, would mean pausing for the time it takes 15 frames to play and since the frame rate is 30 frames per second, 15 frames would take half a second.
Translating all of this in case of the above example, the boot animation will play at a resolution of 480 by 800 pixels, at a frame rate of 30 fps, starting with the contents of part0 folder and after playing them in one loop, switching to contents of part1 folder and playing them continuously till the device fully boots.
Note: Most high-end Android devices with large screens have a resolution of 480 x 800 pixels, and are referred to as HDPI. Some mid-range devices have a resolution of 320 x 480 pixels and are called MDPI. Lastly, the screen resolution of some low-end devices is 340 x 320 pixels and these are called LDPI.
Requirements:
1. A zip/unzip utility like 7-Zip
2. Image editor of your choice like Photoshop, GIMP, Paint.NET, and also MS Paint.
3. A plain text editor of your choice. Using Windows Notepad for editing text files that are to be used in Linux is not always a good idea, so use something like Notepad++ instead.
4. Creativity and Time
5. I9003 screen resolution is 480x800
Procedure:
1. Go through the entire inside the sanim.zip (Description on the top post, if you haven’t already done so)
2. Plan how your boot animation will run including how many distinct parts it will have, how long will each part play and what will be the sequence of the parts.
3. Make a new folder at any convenient location on your computer, and name it sanim.
4. In this folder, create a folder for each part of your boot animation, named part0, part1 and so on.
5. In the image editor of your choice, make all the image files for each part of your boot animation with the proper which is 480x800 equal to I9003 phone screen resolution, and save them in the respective folder for each part, in PNG format. Up to 32 bit PNGs are supported.
Note: In case you are converting an existing boot animation to fit your phone’s screen, simply extract the images from it and resize each of them to your device’s screen resolution.
6. Make sure the images are named in numerical format and in proper sequence, i.e. the images in the first part should start with let’s say 000.png and go on till 075.png, and the images in the second part should then start off with 076.png and go on till – for instance – 123.png.
7. Once you have the images for all the parts done and saved with proper names in each folder, create a text file named desc.txt in the main sanim folder.
8. Open the text file in a text editor and edit it in the format described in detail in the desc.txt file section above. Do consider that a frame rate higher than 30 fps can give issues on many devices.
Note: In case you are converting an existing boot animation to fit your phone’s screen, keep everything the same as in the original desc.txt file and change only the resolution.
9. Now select everything inside the sanim folder and zip them into a new uncompressed zip archive using your favorite compression utility. Here is the method using 7-zip:
9A. Select everything inside the sanim folder.
9B. Right-click on any of the selected files/folders and from the 7-zip menu, select ‘Add to archive’.
9C. Use ‘zip’ as the archive format and ‘store’ as the compression level, and click OK. This will create a file called sanim.zip in the same folder.
DONE with your own bootanimation.
Applying sanim.zip into I9003
Copying the sanim.zip to /system/media/. Make sure you have root access and mount your system to R/W access. This will be done by Root Explorer. After that reboot your I9003
Note: Make sure you have done backup your original sanim.zip to somewhere safe like External Card or PC. This can be done by MOVE the file out from the original place and paste it to your External Card.
The Droids series by Dysgenic
Download (XDA Developer)
Android Particle Ring by Dysgenic (Modified by aph):
Download (XDA Developer)
This article has been modified to fit with I9003 Bootanimation
Original post from www.addictivetips.com
UPDATED (21/10/2011)
Creating a boot animation, start to finish.
The following is a start to finish how to via the method that I create boot animations. I can't take full credit, as I have found bits and pieces here an there. I just put them all together..in one place. This isn't an easy process, and does require quite a bit of time.
Tools you will need
- DVD Videosoft Studio
- Gimp or Paint.net or fotosizer
- Zip file creator like 7zip
So get all the programs dloaded and installed and figure out what you want to use for your animation.
You can use images or a clip of video.
We will begin with a youtube video. Youdoofus has supplied us with an excellent specimen.
YouTube - Doin' Your Mom - with dancing cat
A. Downloading a video (Skip these steps if using some other video. Go to B.)
Open the video studio
Click Youtube
Then Youtube download
Paste the link of the video you want to use
Click download (bottom right)
Close out of the Download screen, un check all of the boxes in the pop-up otherwise the program does install web toolbars.
B. Extracting Images from any video. (Skip to C if you already have images.)
Open the video studio
Click on Photo and Images
Free Video to Jpeg
Browse to you video file
Select the option (I use every frame so I can pic and choose)
Close studio, remember to un check the boxes
C. Convert Images
Create a folder on your desktop and put your images in it.
Use you photo edit tool of choice. I use fotosizer, it allows batch.
Select your size. For the Evo use 480x800
Choose Destination Folder I always create a new folder
Output as .png
Filename mask should be %f (the other options never work for me)
Choose add images
Highlight all of the images
Click Start
Now open the new folder of converted images (you can delete the originals folder from the first step above)
Right click on the first image and select rename
Rename in numerical order 0001 pressing tab after you are done..until you reach the end. I don't use more than 100 images. Small groups like this can be repeated. I only pulled 15 images from the video. We will have it loop in the script below.
D. Building the bootanimaton.zip
Create two folders, named part0 and part1
part0 will contain a single, display once png and part1 would contain the animation images. You can play with different scenarios here...ie loop images until boot is complete or loop once and stop on one last image. I will get more details together soon.
Place animation files in part1 folder and a "frozen image" in part0 if you choose to set it up that way.
We need to tell the animation what to do with this type of txt file
480 800 60
p 0 0 part0
p 0 0 part1
again
The boot animation is stored on your phone as a zip file in the folder /system/media. It consists of 2 folders part0 and part1 and a description text file (desc.txt). Both part0 and part1 folders contain animation frames as PNG files. part0 folder contains those frames which are animated only once, where as part1 folder contains the looped(repeated) frames. The desc.txt file contains the animation settings such as fps (number of frames per second), width, height, times to be played, pause time etc you can change up a lot here.
Ctrl+ select the part0 file the part1 and the desc text file and right click.
Select 7zip or your zip program and then "add to blahblahblah.zip" Make sure to do .zip and not the other choices. Make sure your default settings are for no compression.
Rename the file bootanimation.zip (remember not to name it .zip.zip) I keep a few animations on my sd car in a file called "booty" so I typically put something in front like kitty_bootanimation.zip so i know which is which.
Put the file on your sd card.
Use root explorer to navigate to system.media and rename the current boot animation to whatever you want.
Now copy your new animation from the sd card to system.media
In some cases the animation will be located at system.customize.resource
To add an audio clip use any mp3, renamed android_audio.mp3 and put it in the same place as your animation. Keep in mind audio doesn't work on all roms. You may also need to adjust the length. I use Audacity for that on the pc, and there are a number of ringtone trimmers that will do it on the phone.
ALSO SEE THIS:-
1. How to make your own boot animations (with sound if you want) by despotovski01
2. How to preview your Android boot animations on your computer by despotovski01
3. Boot Animation Creator-Make Android Boot Animations With Ease! by despotovski01
superb bro.
wow.. thanks for sharing man...
doesnt work for me : forum.xda-developers.com/showthread.php?p=18607910#post18607910
Nice Explanation bro..You might check my attched file and Maybe It will fit on your thread...\m/
blaqkarma said:
Nice Explanation bro..You might check my attched file and Maybe It will fit on your thread...\m/
Click to expand...
Click to collapse
OP UPDATED! thanks...
Thanks im a complete beginner at this but gonna give it a go i will share when completed
Sent from galaxy s2 , somewhere having a beer using xda premium
adz63 said:
Thanks im a complete beginner at this but gonna give it a go i will share when completed
Sent from galaxy s2 , somewhere having a beer using xda premium
Click to expand...
Click to collapse
u shud share
Droid Bionic Boot Animation
Heyy guys..can anyone pls provide me with droid bionic boot animation for our GT-i9003 device?? I am trying to downscale the original droid bionic boot animation resolution but it's not working..

[GUIDE] All Related to Boot Animations !!!

A Guide To Support My Other Thread On How To Create Boot animations So It Is Easier For People To Understand And Grasp The Concept.
so they will ask less questions XD
CONTENTS
The Basics
Inside the bootanimation.zip file
Featured Boot Animations
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Basics :
The Android boot animation is contained within a an uncompressed zip file called bootanimation.zip that can be found in the media folder of the system partition i.e. /system/media on the internal memory of the device. This single file contains all the information required to play the boot animation, and is loaded automatically when the device boots. Thus, customizing or changing the boot animation is simply the process of editing or replacing this file.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Inside The Bootanimation.Zip File
This section is for those interested in finding out how the Android boot animation works. If you just want to install one without bothering yourself about what’s in the file, feel free to move on to the next section, as this one will get a little technical. Though it should be easy and simple enough for anyone to grasp.
While the Android boot animation might appear to be in a video format during playback, it is in fact a little different. If you extract the contents of the bootanimation.zip file to your computer, you will see:
A desc.txt file
A part0 folder (Contains PNG images named in incremental numbers)
More part1, part2 etc. folders (May or may not be present)
As you can see, bootanimation.zip merely contains one text file and one or more folders with PNG images. The animation is played simply by displaying the images in a sequence, and the text file defines how they are to be played. In essence, first the PNG files in the part0 folder are displayed one after the other and afterwards, those in the part1 file – if it exists – are displayed, again one after the other, and so on. All of this is defined in the desc.txt file.
Let’s see how it works in a little detail by taking a closer look at the contents of the file.
The folders
These contain PNG images named in numbers, starting from something like 0000.jpg or 00001.jpg and proceeding with increments of 1. There has to be at least one folder, and there is no known upper limit to the number of folders.
The desc.txt file
This file defines how the images in the folder(s) are displayed during the boot animation, in the following format:
Width Height Frame-rate
p Loop Pause Folder1
p Loop Pause Folder2
An example of a desc.txt file is:
320 480 30
p 1 0 part0
p 0 0 part1
As you can see, in the first line, 320 and 480 define the width and height of the boot animation in pixels for this example. This must be the same as the screen resolution of your device for the boot animation to properly play in full screen. 30 is the frame rate in fps (frames per second) i.e. number of images to display per second.
The second and third lines have a same format, start with p, which stands for a part of the animation and end in part0 or part1, which denotes the folder in which the images for that part are present.
The number after ‘p’ defines how many times this part will loop (repeat playback) before switching to the next part (if present). Specifying 0 would make the part loop indefinitely till the phone has fully booted.
The next number is for the pause, and is expressed in the number of frames, which can be translated into time by dividing it by the frame rate. A pause of 15 for example, would mean pausing for the time it takes 15 frames to play and since the frame rate is 30 frames per second, 15 frames would take half a second.
Translating all of this in case of the above example, the boot animation will play at a resolution of 320 by 480 pixels, at a frame rate of 30 fps, starting with the contents of part0 folder and after playing them in one loop, switching to contents of part1 folder and playing them continuously till the device fully boots.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
NOTE :
A note on resolution: Most high-end Android devices with large screens have a resolution of 480 x 800 pixels, and are referred to as HDPI. Some mid-range devices have a resolution of 320 x 480 pixels and are called MDPI. Lastly, the screen resolution of some low-end devices is 340 x 320 pixels and these are called LDPI, though these are either the really old Android phones or the cheapest Chinese models.
As a rule, a boot animation made for a lower resolution device will run fine on a high resolution one but it will be centered on the screen, with the extra screen space around it not being used. Using a high resolution boot animation on a low resolution device will result in the boot animation not fully displaying on the screen, with its outer parts being cut off due to being outside the screen’s bounds.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Featured Boot Animations
Link for some boot animations for ace plus : http://forum.xda-developers.com/showthread.php?t=2197483
reserved
reserved
May u make guide how to make boot splash? Like gaple rom and mb-14 kernel does?
Sent from my GT-S7500 using my finger
mohdradzi84 said:
May u make guide how to make boot splash? Like gaple rom and mb-14 kernel does?
Sent from my GT-S7500 using my finger
Click to expand...
Click to collapse
Thnxxx for d suggestion dude !
IM4U
Sent from my GT-S7500 using my finger.
OX Mobile Spy
Very useful tutorial, it is worth I came to learn
Harshraj said:
A Guide To Support My Other Thread On How To Create Boot animations So It Is Easier For People To Understand And Grasp The Concept.
so they will ask less questions XD
CONTENTS
The Basics
Inside the bootanimation.zip file
Featured Boot Animations
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Basics :
The Android boot animation is contained within a an uncompressed zip file called bootanimation.zip that can be found in the media folder of the system partition i.e. /system/media on the internal memory of the device. This single file contains all the information required to play the boot animation, and is loaded automatically when the device boots. Thus, customizing or changing the boot animation is simply the process of editing or replacing this file.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Inside The Bootanimation.Zip File
This section is for those interested in finding out how the Android boot animation works. If you just want to install one without bothering yourself about what’s in the file, feel free to move on to the next section, as this one will get a little technical. Though it should be easy and simple enough for anyone to grasp.
While the Android boot animation might appear to be in a video format during playback, it is in fact a little different. If you extract the contents of the bootanimation.zip file to your computer, you will see:
A desc.txt file
A part0 folder (Contains PNG images named in incremental numbers)
More part1, part2 etc. folders (May or may not be present)
As you can see, bootanimation.zip merely contains one text file and one or more folders with PNG images. The animation is played simply by displaying the images in a sequence, and the text file defines how they are to be played. In essence, first the PNG files in the part0 folder are displayed one after the other and afterwards, those in the part1 file – if it exists – are displayed, again one after the other, and so on. All of this is defined in the desc.txt file.
Let’s see how it works in a little detail by taking a closer look at the contents of the file.
The folders
These contain PNG images named in numbers, starting from something like 0000.jpg or 00001.jpg and proceeding with increments of 1. There has to be at least one folder, and there is no known upper limit to the number of folders.
The desc.txt file
This file defines how the images in the folder(s) are displayed during the boot animation, in the following format:
Width Height Frame-rate
p Loop Pause Folder1
p Loop Pause Folder2
An example of a desc.txt file is:
320 480 30
p 1 0 part0
p 0 0 part1
As you can see, in the first line, 320 and 480 define the width and height of the boot animation in pixels for this example. This must be the same as the screen resolution of your device for the boot animation to properly play in full screen. 30 is the frame rate in fps (frames per second) i.e. number of images to display per second.
The second and third lines have a same format, start with p, which stands for a part of the animation and end in part0 or part1, which denotes the folder in which the images for that part are present.
The number after ‘p’ defines how many times this part will loop (repeat playback) before switching to the next part (if present). Specifying 0 would make the part loop indefinitely till the phone has fully booted.
The next number is for the pause, and is expressed in the number of frames, which can be translated into time by dividing it by the frame rate. A pause of 15 for example, would mean pausing for the time it takes 15 frames to play and since the frame rate is 30 frames per second, 15 frames would take half a second.
Translating all of this in case of the above example, the boot animation will play at a resolution of 320 by 480 pixels, at a frame rate of 30 fps, starting with the contents of part0 folder and after playing them in one loop, switching to contents of part1 folder and playing them continuously till the device fully boots.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
NOTE :
A note on resolution: Most high-end Android devices with large screens have a resolution of 480 x 800 pixels, and are referred to as HDPI. Some mid-range devices have a resolution of 320 x 480 pixels and are called MDPI. Lastly, the screen resolution of some low-end devices is 340 x 320 pixels and these are called LDPI, though these are either the really old Android phones or the cheapest Chinese models.
As a rule, a boot animation made for a lower resolution device will run fine on a high resolution one but it will be centered on the screen, with the extra screen space around it not being used. Using a high resolution boot animation on a low resolution device will result in the boot animation not fully displaying on the screen, with its outer parts being cut off due to being outside the screen’s bounds.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Featured Boot Animations
Link for some boot animations for ace plus : http://forum.xda-developers.com/showthread.php?t=2197483
Click to expand...
Click to collapse
what about these codes :
320 480 36
p 1 0 part0
s 1 /system/media/poweron.ogg
p 0 0 part1
s none
could you explain those ???????

Categories

Resources