Reputation: 10470
I am trying to update the ic_launcher.png
file for my app. For some reason I still get this very small old version of the icon in the "App setting" on my phone:
Also when I see the uninstall screen the icon is not right:
But after hit 'uninstall' the confirmation screen's icon is good.
Also the launcher icon looks fine on the Home screen when the app is installed.
Upvotes: 7
Views: 2775
Reputation: 2824
Icon size will depend on your phone DPI
s make sure you provide all supported sizes.
Upvotes: 0
Reputation: 8057
Create mipmap folder in res directory right click on res folder => copy path and goto that directory and create this folder see in this image
After create this folder you can see this directory in android studio.
add this size of icon in your folder
LDPI - 36 x 36
MDPI - 48 x 48
HDPI - 72 x 72
XHDPI - 96 x 96
XXHDPI - 144 x 144
XXXHDPI - 192 x 192.
then add this icon in android manifest file
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".ActivityTwo">
</activity>
</application>
Upvotes: 4
Reputation: 7285
You need to have the images for all kind of resolutions. And place those images in appropriate folders
in Folder res -> mipmap folders
And call this icon in Manifest file as
android:icon="@mipmap/ic_launcher"
Make sure that you have all these above resolution images in appropriate folders. If you still face the problem, try uninstalling the existing apk from device. Clean and rebuild the project and rerun it on your device.
Upvotes: 6