Blog coding and discussion of coding about JavaScript, PHP, CGI, general web building etc.

Wednesday, January 6, 2016

Set icon for android application

Set icon for android application


How can I set an icon for my android application?

Answer by trgraglia for Set icon for android application


you can start by reading the documentation.

Here is a link:

http://developer.android.com/guide/topics/fundamentals/activities.html

Answer by Sunil Pandey for Set icon for android application


Place your images in drawables folder under either of the three and set it like this.

Code

  ....       

Answer by CapDroid for Set icon for android application


put your image in drawable folder and set in manifest file... like as

    ....        

Answer by Pratik Popat for Set icon for android application


  1. Choose icon picture copy this pic
  2. Paste it into your project's res/drawable folder
  3. Open manifest file and set

  4. Run program

Answer by Liam George Betsworth for Set icon for android application


If you intend on your application being available on a large range of devices, you should place your application icon into the different res/drawable... folders provided. In each of these folders, you should include a 48dp sized icon:

  • drawable-ldpi (120 dpi, Low density screen) - 36px x 36px
  • drawable-mdpi (160 dpi, Medium density screen) - 48px x 48px
  • drawable-hdpi (240 dpi, High density screen) - 72px x 72px
  • drawable-xhdpi (320 dpi, Extra-high density screen) - 96px x 96px
  • drawable-xxhdpi (480 dpi, Extra-extra-high density screen) - 144px x 144px
  • drawable-xxxhdpi (640 dpi, Extra-extra-extra-high density screen) - 192px x 192px

You may then define the icon in your AndroidManifest.xml file as such:

  ....      

Answer by Blowsie for Set icon for android application


I found this tool most useful.

  1. Upload a image.
  2. Download a zip.
  3. Extract into your project.

Done

http://android-ui-utils.googlecode.com/hg/asset-studio/dist/icons-launcher.html


There are a lot of other useful tools as well. http://romannurik.github.io/AndroidAssetStudio/

Answer by labatyo for Set icon for android application


Right click your project, go to New > Other > Android > Android Icon Set

Then follow the instructions on the Wizard

Answer by iceman for Set icon for android application


If you have an SVG icon, you can use this script to generate your android icon set.

Answer by Milaaaad for Set icon for android application


1-Create Your icon in Photoshop Or Coreldraw by size 256*256

note that use PNG file format if you want to have a transparent icon

2-Upload Your icon in https://romannurik.github.io/AndroidAssetStudio/icons-launcher.html

3-Set your setting on this site enter image description here

4-Download the zip file automatically created by the webpage by clicking on download button enter image description here

5-Extract the zip file and copy res folder to you project library enter image description here

note that res folder contain all size icon

6-finally you need to set the manifest to use icon

  ....     

Answer by Pavel 'PK' Kaminsky for Set icon for android application


A bit old, but for future use:

Open Android Studio -> app/src/main/res -> Right Click -> Image Asset  

Answer by Arshid KV for Set icon for android application


Add application launcher icon with automatic sizing

( Android studio )

Go to File > New > Image Assets > select launcher icon > choose image file.

It will automatically re-size.

Done !

Answer by Saravanan Ponnaiah for Set icon for android application


I have another question on using icons in Android application. I have to use nearly 20 icons in my Android application. For this, should I need to place 20 individual icon PNG files under drawable folder. Or, is there any possibility of consolidating all 20 icons into single PNG file (Image sprite) as an icon set and place that single PNG file in drawable folder? If we can do so, can someone give some pointers on how to do that and referred in application. Thanks.


Fatal error: Call to a member function getElementsByTagName() on a non-object in D:\XAMPP INSTALLASTION\xampp\htdocs\endunpratama9i\www-stackoverflow-info-proses.php on line 72

0 comments:

Post a Comment

Popular Posts

Powered by Blogger.