This is my very first time to make an android application. I\'ve only made 3 designs for my very first app but every time I ran the Android Virtual Device, the icon of my ap
I know the answer has already been found. But, I found a different solution that worked for me and I would like to share.
I have a custom launcher on my phone and I had set the app icon to a seperate image of the default android icon. I had to switch this back to the default app icon.
Just make sure that your launcher is not replacing the default app icon and is updated the icon with the updated app icon.
I suggest to import you Icon in the Android Project like this:
Right click on your App folder and go to NEW
-> Image Asset
and upload the icon there. then it will show up.
You will be presented with this screen where you can simply select your icon.png
Furthermore it automatically scales the Icon in all the different screen densities!
Regarding the updated question:
Do the following things:
mipmap
folder, you should look for a folder named AndroidStudioProjects
(by default) -> yourProjectName
-> App
-> src
-> main
-> res
-> mipmap
. also make sure that the mipmap folder has the screen density you need (e.g. xhdpi)Anyway Importing the Icon as displayed above, avoids all this problems because it does everything for you.
Hope this helps!
You should check on an android phone if you can download and play the app. If the problem is only with the emulator - it does get buggy, so the regular reinstalling the emulator/android studios, restarting your computer, trying to install a different emulator might work.
Otherwise:
The relevant line to look at is:
android:icon="@mipmap/ic_launcher"
This means that the app is going to the 'mipmap' folder inside your directory, and looking for a file named 'ic_launcher' - to display it as the App icon.
You need to make sure this file name exists in the proper folder, and is in the correct format(this guide might help )
How to find the image location folder
If this doesn't help: remember that icons can be displayed at different qualities for different devices (hdpi, mdpi, xhdpi....) so sometimes if you want to make your own icon you need to make sure it fits the requirements (in the above guide)
First of all check the logcat for if the application your are developing is even getting installed on the emulator or not. Then if it says that "installing" and if still you don't see your app. Then just build an apk and then try installing it on a mobile device via bluetooth. And for the Application icon just click res>imagge Asset > select your icon for your app to show on any mobile device and then just save/go/apply.