Everything is okay on the main screen.
Image
But something goes wrong in the "running apps" screen.
Image
I tried to change both android:icon and android:logo but that didn't work.
Set the icon.
android:icon="#mipmap/ic_launcher"
android:roundIcon="#mipmap/ic_launcher_round"
If it doesn't work, try to reboot your phone.
Try to add this to your manifest:
android:roundIcon="#mipmap/your_icon_image"
Related
I just published my app on play store and I notice that some Samsung device does not display the icon of my app. They assert the default icon of android studio. Have you an idea what can cause that? i'm confused
<application
android:name=".MyApp"
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:roundIcon="#mipmap/ic_launcher_round"
android:label="#string/app_name"
android:theme="#style/AppTheme">
....
</application>
Try This;
File -> New -> Image Asset -> Launcher Icons (Adaptive and Legacy)
For more information;
https://proandroiddev.com/android-adaptive-icons-are-easier-than-you-think-3c66be2dd4dd
https://developer.android.com/guide/practices/ui_guidelines/icon_design_adaptive
Remove this line..
android:roundIcon="#mipmap/ic_launcher_round"
My issue was solved by restarting the phone.
I thing some device had oreo and pie OS that why device does not show the correct app icon.Now you can delete ic_launcher_round and ic_launcher from mipmap-anydpi-v26
please check this link Launcher Icon is not Shown in Oreo 8.0/8.1
This happened to me when I noticed my mipmap folder is missing but if I search the icons in the project they are there. So I created a mipmap folder manually New > Android resource directory > Mipmap. Then I generated the image asset for the icons again.
I cannot update the icon on the homescreen. It is the green robot default android icon. How can I change this to the icon?
I have added icons in the app > src > res folder for different resolutions.
I am uploaing my app using the play console. Any ideas?
My manifest states:
android:icon="#mipmap/ic_launcher"
The name matches the image in the assets folders.
Here is a link to my repo:
https://bitbucket.org/matthisco/ejected-calendar/src/master/android/app/src/main/
Change project to android
than go to res>mipmap>paste your icon there (iconName.png)
replace
android:icon="#mipmap/ic_launcher" in manifest
to
android:icon="#mipmap/iconName"
You can update the homescreen icon as follows:
In AndroidManifest.xml under application tag
<application
android:icon="#mipmap/yourdesiredIcon"/> // replace ic_launcher to desired icon
Goto app > src > main > res
rename your icon to ic_launcher.png and paste it to all mipmap folders
The correct folder where the Android icon must be placed is res->mipmap-xxxx where xxxx signals the screen resolution.
Also check that your manifiest is using it. Open the manifest and in the application tag you should have something like this:
android:icon="#mipmap/ic_launcher"
Also verify you icon is named ic_launcher.
As you can see that entry in the manifest says "go look for the icon in the mipmap folder, use the one named ic_launcher"
I faced the same issue, but I realized that in the Android Manifest
android:roundIcon="#mipmap/ic_launcher"
android:icon="#mipmap/ic_launcher"
were pointing to the same images, which were square. The phone I was testing on had a round icon, and so the default android image was displaying, I presume because the format was incorrect.
When I then tested on a phone with a square image, the images were displaying correctly.
I have two languages in my app, English and Urdu. When the language is changed to Urdu home up button changes its direction like this:
Please help me how can I fix this issue. I want arrow direction to be on left side
To support right to left screen layout, you have to android:supportsRtl="true" line in your manifest.xml For example:
<application
android:name=".Application"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:supportsRtl="true"
>
After writing this tag, the arrow button will appear on the right and other icons on the left.
For more information, see this post.
There is not issue and supportsRtl.
Because if
android:supportsRtl="true"
then view display from right-hand-side.
If false then it'll display as it is.
Can i have your manifest application tag and style which used there?
I placed a new launch icon in the 4 folders and called it ic_launcher.png for the 4 different resolutions, and I have this in my Manifest:
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme"
>
But when I run the app, I still get the default launch icon showing up. Is there something else that I have to do that I am forgetting?
Thanks!
Rename the icon in all 4 drawable folders and refresh the 'res' folder. Right click on it --> 'Refresh'
Make sure you remove the old version of your app from the device, then run it again and it will render
I hope that makes sense...
Basically when the on screen keyboard appears and then the auto suggestions as well, it pushes my view up the screen - a graphic in an imageView that I would like to persist.
When the auto complete is over and done with, the screen stays where is is despite the auto suggest disappearing.
Is there any way to let my layout reclaim that space and simply go back down again into the empty space ? ie to float back down again ?
Cheers :)
If I got you right, try adding the following line to the <activity> in your manifest:
<application
android:icon="#drawable/icon"
android:label="#string/app_name">
<activity
...
android:windowSoftInputMode="adjustPan"
...>
...
</activity>
...
</application>