1. Prepare the Icons
You need to create a set of icons with different resolutions and dimensions to suit with different types of phone displays. Android developer website provides a set of template icons, that you can use to start designing your icons. They are photoshop files with .ps extensions. You can also use free tools like GIMP to open these template files and modify them, or you can create the icon images from the scratch.
Here are the specified dimension (width x height) and the resolution (dpi) of the icon for different types of displays.
- Low density screens (ldpi): 36x36px, 120dpi
- Medium density screens (mdpi): 48x48px, 160dpi
- High density screens (hdpi): 72x72px, 240dpi
- Extra high density screens (xdpi): 96x96px, 320dpi
Here is the set of icons I prepared for the BMI Calculator app.
2. Add Icons to your project
Open the 'res' directory in your project and copy the icons into the corresponding sub directories listed heer.
- Low density screen icon : res/drawable-ldpi
- Medium density screen icon : res/drawable-mdpi
- High density screen icon : res/drawable-hdpi
- Extra high density screen icon : res/drawable-xdpi
That's it. If you put the icons in the correct directory with the correct name, the android development kit will pick them and use for the launcher icon of you app.
2. Test the launcher icon in your phone
Check reinstalling the app on your phone. (You can redo the step5 mentioned in the previous blog (Writing Your First Android App - Body Mass Index Calculator) to reinstall the app on your phone. Click the app drawer and see how well the icon of your app goes with other apps.
You can download the eclipse project and the android app that we created in this post from following links.
Download the eclipse project files (zipped) | com.blogger.android.meda.bmicalculator-updated.zip |
Access the Source code from github | github repo |
Download the free BMI Calculator app (the latest version) from the Android Market. |
I like your blog tips.This is one of the enjoyable and good post.I will again come across towards this post.
ReplyDeleteAndroid app developers
Such a nice tops for android development android developer for hire
ReplyDeleteThis comment has been removed by the author.
ReplyDeletea plugin for Gimp to resize and write your icon images for each density folder : gimp-android-xdpi
ReplyDeleteGreat info! thanks!
ReplyDeletePlease note you have a small error- you write:
Extra high density screen icon : res/drawable-xdpi
Should be: xhdpi
Thanks for a great article :)
I would certainly commit 10 on 10 for such incredible cognition.
ReplyDeleteandroid rooting
Your articles support me a lot in all mediums of subjects.
ReplyDeleteone click root droid x
It´s really important to know how to correcty make your own app icons, and this was a gret review. learn here
ReplyDeletehow to create launcher icon with no eclipse project in the android phone?
ReplyDeletethanks for your article..
ReplyDeletei have a same application for android device, support me yaa at instagram android
I found lots of interesting information here. The post was professionally written and I feel like the author has extensive knowledge in this topic
ReplyDeleteandroid development
This comment has been removed by the author.
ReplyDeleteOne of the best android tutorial to come across. It basically goes from the beginning to the end designing an app. While most of the other tutorials tend to jump from places and usually do not continue from where they last left which gets confusing and very difficult to follow.
ReplyDeletenice post thanks for shairng
ReplyDeleteappvn download
tutuapp apk ios
Outstanding blog thanks for sharing such wonderful blog with us ,after long time came across such knowlegeble blog. keep sharing such informative blog with us.
ReplyDeletemachine learning classroom training in chennai
python machine learning training in chennai
machine learning training in velachery
top institutes for machine learning in chennai
I feel very grateful that I read this. It is very helpful and very informative and I really learned a lot from it.
ReplyDeleteblue prism training in chennai | blue prism training in velachery | blue prism training and placement | best training institute for blue prism | blue prism course fee details | Best Blue Prism Training in Credo Systemz, Chennai | blue prism certification cost | blue prism certification training in chennai | blue prism developer certification cost