Android Launcher Icon doesn't load - android

Doing a routine update to an app and decided to update the launcher icon as I have done many times before. However, I'm getting a very strange bug which I had once before but can't remember how I resolved.
I have the right sized icons in each drawable folder and in the manifest the name is correct:
android:icon="#drawable/ic_launcher"
When I try to update the app the old icon remains, on a fresh installation the default launcher icon shows.
I've tried:
Cleaning the project
Restarting Eclipse
Restarting my computer
Restarting the device
A different device
Adding a new set of icons using the Android Icon Set function
Adding a new set using a different filename and changing the name in the manifest
One stange thing that is worth pointing out, if I delete the file ic_launcher.png from a drawable folder, then rename another file to that filename I get this error:
This shouldn't show as the file doesn't exist. This error then shows if I click continue:
Any ideas?
EDIT:
It appears this issue is even more complex than I thought. If I install an app on the emulator the icon appears just fine, on a device it doesn't. If I install the app onto physical devices from the apk, on one device the icon appears and on the other the Package installer crashes!

It seem this is caused by a bug in newer versions of Android. The icons are indeed included in the apk and upload just fine to Play, however it takes a reboot to get them to be shown on my devices (I was wrong above where I said a reboot doesn't work). This means I need to reboot the devices each time I try and new icon, not the end of the world but certainly frustrating.
This problem exists on two different apps I have been working on and two different Nexus devices, I think since they were updated to 5.0.

Related

Android application home screen icon showing default android icon?

My applications are behaving oddly when deploying them on the phone. The application icon shows correctly in the applications drawer but in the home screen they show a default android icon. I think this has started happening since I updated to last android studio but I'm not sure of it. Before, everything was ok.
I have been researching this issue but could not find any info about it. Is anyone suffering from this problem? Have you found a solution?
Cheers.
I have seen this on some devices that appear to cache the app icon. In my experience deleting the app from the device and reinstalling has always cured it. This doesn't seem to be a problem when the app icon changes and the app is installed from Google Play, but only when installed via adb, so I don't believe users should see this problem.
I can not comment due to low reputation, so I'm asking that did you place the icon in following folder:
mipmap-mdpi
mipmap-hdpi
mipmap-xhdpi
mipmap-xxhdpi
if not then place your icon in these folder and check.
because now launcher icon should in these folders.
Hope this helps.
Thanks

Running app from android studio does not save onto my android device anymore

I have only just started android programming, but I have a few basics programs working. Normally when I click run in Android Studio and choose my galaxy nexus as a running device, the app I'm running opens and is saved onto my device, so that I can open my program when I am not plugged into my computer.
However, now when I hit run, my program opens, but it is not saved onto my device.
This happened almost immediately after I changed my application label in my manifest file, but I'm not sure if that's related. Any help is appreciated!
Make sure that "deploy the APK" is selected in Run-> Edit Configurations
You have to set it at the new project screen. Its greyed out but theres a link next to it. Just click it. Its next to the Package name and that is the only .app extension you need to execute the apk.
I had the same issue. For me the problem was that the icon was not appearing on the screen but I found the app was actually stored on the device. I have installed NovaLauncher on a Meizu U20. I went to see the "Applications List" (tr. it. "Menu delle app"), I found my app icon there and I drag/dropped it on the screen.

Android Studio: Installing the APP on the smartphone

i got a little problem with installing my app on my smartphone. Its works normal when i am using the standart icon, but after changing the icon, Android studio starts the app on my smartphone normally, but i cant find the app in the app list.
What i am trying to say is that, I cant manually start the App, because its not showing on my Smartphone. Starting throuch Android studio works perfectly fine. I assume its because of my new icon, because the other work fine. I changed the Logo in the different Sizes and just exchanged the old icon with the new one.
Please post a snapshot of your code(xml,java and manifest), without which the forum is unable to help you.
You'll have to first update your icon in the drawable folder only then will you be able to use it in your app.

Application restarting after installing from SDCard and putting it on Background

I've created a sample application (just a textview, nothing else), and I noticed a bug.
After installing it from the SDCard, it displays the "Application installed" screen, with the done and open buttons.
If I click the open button, a strange thing occurs:
Whenever I put the application in background and reopen it from the application icon, it doesn't reopen it, it creates a new instance.
I can confirm that it is creating a new instance, because after putting it on background and reopening a few times, when I click the back button, it opens the previous instance, instead of returning to the home screen.
Now the strange thing is that it only happens after installing from the SDCard and clicking on the open button.
If I click the done button (or installing via ADB) and open the application via icon, it doesn't happen.
Also, if I click the open button (and the bug occurs), after the application is ended for the first time, the bug doesn't occurs anymore.
I've tested it in different devices and in different Android versions (GB, HC and ICS), and the bug is reproducing in them all.
Does someone know if this is an known issue from Android and if so, does someone have an official reference that I can refer?
Thanks in advance
Yep, it is a nasty, well-known Android bug that has been around since the very beginning. See the following:
Android issue 26658
Android issue 2373
Android app acts differently installed from adb vs sdcard

AVD - Changes not applied?

I made changes to an app, just changing the icons. That worked, I was able to see the results when I launched the emulator.
I tried to create a new app but when I launched the emulator again I saw my previous app. I have tried to wipe the user data but it doesn't change anything.
Edit: I saw my previous app but the new app didn't appear.
I eventually deleted the projects, the source code and then restarting eclipse but I'm still having the problems. When I launch the virtual device again it's still showing the original app. I've also tried creating a new emulator as well but I have the same .
Anyone else having this problem or know what's going on?
P.S I also tried loading the Halo theme but it doesn't load.
(Using Mac OS X Lion & Eclipse Classic 3.7 (32 bit))
Did you change the name of your applicaition package to cause this behaviour?
Just uninstall the old app from the emulator.
Menu -> Settings -> Applications -> YourApp -> Uninstall

Categories

Resources