Recent App Icon shows the default icon Android Studio - android

I've update the images both Round and square icon works perfectly but in the recent application the default app icon is showing.
Manifest.xml have following code
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:hardwareAccelerated="true"
android:logo="#mipmap/ic_launcher_round"
android:theme="#style/AppTheme">

Related

How to set the Fire TV "icon" on home screen?

I have a Fire TV app that will also be released on normal Android TV and one some TVs that have Android that isn't Android TV and possibly on tablets. So I've set my banner for Android TV and that is working fine, the icon works fine on other devices but the Fire TV shows the icon where I expect the banner to be shown. This is my application xml:
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:supportsRtl="true"
android:banner="#drawable/banner"
android:theme="#style/AppTheme">
<activity
android:name=".start.MainActivity"
android:banner="#drawable/banner"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:logo="#drawable/banner"
android:roundIcon="#mipmap/ic_launcher_round"
android:screenOrientation="landscape">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
</activity>
</application>
What am I missing? I make the custom xml as well with what's below but didn't help:
<resources>
<drawable name="splash_logo">#drawable/banner</drawable>
<drawable name="app_logo">#drawable/banner</drawable>
<drawable name="company_logo">#drawable/banner</drawable>
</resources>
To answer my own question, that appears to come from the Amazon App Store. Once I released my app, the banner magically changed on its own.
If it is accepted, yes—but if not then you must have something like:
<application
android:icon="#drawable/ic_launcher"
...
Please note that this ic_launcher must be 192x192.

android application icon is white circle

I have made some icon for my app and I have tested it on some old Samsung galaxy phone and it showed the icon is a nice square shape.
For some reason, on a newer phone + on the Emulator it shows a white circle as follows:
My manifest file looks as follows:
<application
android:allowBackup="false"
android:icon="#mipmap/ic_launcher_custom"
android:label="#string/app_name"
android:roundIcon="#mipmap/ic_launcher_custom_foreground"
android:supportsRtl="false"
android:theme="#style/CustomActivityTheme">
and my mimap is:
How can I solve it please?
Thank you
Move the mipmap content out of the project
then create app icons with Asset studio (right click on project panel > new > Image Asset)
and set icons in manifest like this:
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="#style/AppTheme">

Wrong icon and label app in Huawei Phone - how to fix that?

I got the following code to customize my app icon and label:
<application
tools:replace="android:icon"
android:allowBackup="true"
android:label="#string/app_name"
android:icon="#drawable/appicon"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="#style/AppTheme"
tools:ignore="GoogleAppIndexingWarning">
Everything is all right, the correct icon and label show up in some phones (including brands like Samsung and Xiaomi), but when I install on a Huawei Mate 20 the result is the following image icon and label:
Do you know what I'm doing wrong? Thank you.
Most of the mobiles use round edged icon for the app icon. But other use with round app icons.Depends on the theme of the device(having a separate icon or same icon for both instances work). you should change the round app icon also :
android:roundIcon="#mipmap/ic_launcher_round"
to
android:roundIcon="#drawable/appicon"
and remove
tools:replace="android:icon"
it should look like
<application
android:allowBackup="true"
android:label="#string/app_name"
android:icon="#drawable/appicon"
android:roundIcon="#drawable/appicon"
android:supportsRtl="true"
android:theme="#style/AppTheme"
tools:ignore="GoogleAppIndexingWarning">

How to set launcher icon in android in API version greater than 25

How do I generate Android app launcher icon?
My Manifest file of my android app:
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:roundIcon="#mipmap/ic_launcher"
android:supportsRtl="true"
android:theme="#style/AppTheme">
I am using Android Studio 3.0.1. In mipmap folder I see many file for ic_launcher. Which file to change for the launcher icon?
Android requires different sizes for same icon so that it can automatically check which size is required for which device.
To add custom launcher icon to your app you have to create a icon with different sizes and add your them in mipmap folder.
Now change the icon name in menifiest file
for example you add a image named my_appicon.png and your roundedIcon name is my_appicon_round.png then in menifiest file
<application
android:allowBackup="true"
android:icon="#mipmap/my_appicon"
android:label="#string/app_name"
android:roundIcon="#mipmap/my_appicon_round"
android:supportsRtl="true"
android:theme="#style/AppTheme">
the roundIcon can also be same but if you want to provide round icon for your app you can do this using
roundIcon property.
Note: different image sizes are not compulsary android can auto resize your images to different sizes if you don't provide them.

Don't change the design when language of phone changed

hello i'm a new android developer and I create an android app.
when the language of phone is English everything is good but when i change it to a right to left language (for example Persian or Arabic) location of views are changed. what should i do? thanks .
in your AndroidManifest.xml, add the following line to the application node's attributes:
android:supportsRtl="false"
Your final code should look like this
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.app">
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:supportsRtl="false"
android:theme="#style/AppTheme">
...
</application>
</manifest>

Categories

Resources