What does the ic_launcher-web.png in my project root do?

AndroidEclipseIconsProject

Android Problem Overview


Unbelievably enough, I couldn't find an answer when Googling for this very basic question!

I noticed that since I upgraded from Eclipse Helios to Eclipse Juno and updated the Android SDK, Eclipse places a file called ic_launcher-web.png in the project root whenever I create a new Android project. The file is the same as the application icon selected in the project creation dialog, but what does it do? As mentioned, it's in the project root, not in any of the /res/ folders. So is it included in the finished .apk file, and what is it's purpose?

Android Solutions


Solution 1 - Android

It's for the Play Store, which accepts 512x512 high-resolution icons:

> - High Resolution Application Icon (Required):

  • Use: In various locations in Google Play.
  • Specs: 512x512, 32-bit PNG with alpha; Max size of 1024KB.

> -- Google Support

(A more tutorial like explanation can be found here.)

It is not used in your actual app or the launcher, so it is not packaged in the APK.

Solution 2 - Android

This is the icon for the google play store. You need to provide a 512 x 512 icon.

Solution 3 - Android

There is a little bit of an explanation here on this page:

http://developer.android.com/guide/practices/ui_guidelines/icon_design_launcher.html#size

Solution 4 - Android

If you keep this file make sure to change it to duplicate your regular launcher file. You manually add the regular launcher file to the play site when submitting your project anyway so the extra web launcher file may not be needed. My first project never had one.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMagnusView Question on Stackoverflow
Solution 1 - AndroidCatView Answer on Stackoverflow
Solution 2 - AndroidAhmadView Answer on Stackoverflow
Solution 3 - Androidlord_sneedView Answer on Stackoverflow
Solution 4 - AndroidAndroidcoderView Answer on Stackoverflow