i have a application can't show ic_launcher. before asking question,i do like those:
1. In my AndroidManifest.xml like this
<application android:icon="#drawable/ic_launcher" ...>
...
</application>
there's a pic called ic_launcher in folder drawable.
but in launcher application's icon always can't show ic_launcher.
my android device can show xxhdpi source. so i remove ic_launcher to folder xxhdpi, it can work fine. i want to know why.
please help,thank you .
First Clean and build again your project. If you still facing same issue and if you are using Eclipse IDE then press "ctrl+space" after you typed android:icon="#drawable/ . All available image resource should come as a list. Then you choose appropriate icon for your application and re-run your application.
Related
Hi I added icons to android/app/src/main/res/..., the app icon showing perfectly in home screen like first image, but when minimize the app it showing default app icon like second image. how can change that icon also.
I cleaned build folder, gradlew and reinstalled the app but no changes.
Please help me on this
put this on AndroidManifest.xml and try
<application
...
android:icon="#drawable/ic_launcher"
...
</application>
also hope you update the icons properly. please refer this
https://code.tutsplus.com/tutorials/how-to-update-the-launcher-icon-for-your-android-app--cms-30624
I'm not sure if this comes after you setup androidManifest.xml but you will need icons in these two folders:
android/app/src/main/res/mipmap.
ios//Images.xcassets/AppIcon.appiconset
I've used the resize-reactnative-launcher-icon shell scrip to generate my icons. It takes a png image and creates the 25 variations you need by size and resolution.
bash resize.sh my-cool-new-app-logo.png
I have replaced the standard android studio app icon (ic_launcher) with my own(one for each dimension in the mipmap folders) and deleted the ic_launcher round icons since i won't be using round icons on my app. The problem is that although the icons show up correctly in the res->mipmap->ic_launcher folder, when i install the app on my phone the app's icon is the default one and not the one i chose. Also, if you go into tje phone's app info, the app's icon shows up correctly. I have no clue on why this is happening. Any idea?
Go to manifest and look for roundicon and dont forget to change there.
Go to manifest and replace default icon name with yours here:
android:icon="#mipmap/ic_launcher"
android:roundIcon="#mipmap/ic_launcher_round"
How to change launcher icon of android app during run time?
I am getting icon from server and want to change it dynamically.
In shortcut icon its working but menu icon is not changing.
This may be a duplicate question:
Basically it should be impossible but there is a possible workaround. You can change your manifest to point at multiple drawables.
Create multiple activity-alias tags in Manifest for your MAIN
launcher activity and give a different icon drawable to it. You can
then choose a particular activity-alias via your code as per your
requirement.
Open your android studio as an android application go to res folder inside res folder one folder mipmap. Inside mipmap two folders are showing ic_launcher and ic_launcher_round. Replace with your desired icon of your application and rename your desired icon as ic_launcher.png.
Path=Android project>res>mipmap>ic_launcher and ic_launcher_round > put/replace your desired icon in both folder after renaming abc.png to ic_launcher.png and abc.png to ic_launcher_round.png. You can find the location from manifest file from the mentioned line> android:icon="#mipmap/ic_launcher" . Press ctrl+(mouse click) you will reach to same location. Change your desired icon and enjoy.
I created app from phonegap desktop. How can I change its default logo for android and windows.
Screen at build.phonegap.com says
Your application's details are bound to the config.xml file in your application package. To edit these details, change that file and push it back up to us.
you can see brief info about my problem.
http://community.phonegap.com/nitobi/topics/how-can-i-change-logo-of-my-app-it-showing-default-icon
Maybe you can try to build your project and then go to YourApp/platforms/android
and there you can see the AndroidManifest.xml. Inside the file there is a line:
<application android:hardwareAccelerated="true" android:icon="#drawable/icon" android:label="#string/app_name" android:supportsRtl="true">
As you can see the icons are in drawable/icon, so you have to go to res/drawable and you just have to change the icon.png.
Then you have to rebuild your app so the changes take place.
Note: there are different drawable folder inside the res folder, you can change all off them if you want. Some of them are the splash screen.
Let me know if that works :)
I have several apps dependent on a library project. I wish them all to use the same launcher icons. Unfortunately this doesn't seem to be getting inherited?
I'm getting the generic icon for android...
I had the same problem: my App does not select the launcher icon on the library project but uses the default Android icon.
As suggested in comments, I inserted a line in the manifest.xml:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:mylib="schemas.android.com/apk/res/mylib.libpackage.libbase
package="myapp.apppackage.appbase"
android:versionCode="100"
android:versionName="2.1.0" >
The line is:
xmlns:base="schemas.android.com/apk/res/mylib.libpackage.libbase
the name space mylib.libpackage.libbase is the package name defined in the library manifes.xml.
to reference the launcher icon use
android:icon="#mylib:drawable/ic_launcher"
But.. this not works for me!
Simply I found I need to use the standard approach:
android:icon="#drawable/ic_launcher"
and deleted the ic_launcher resource form all libraries used in my project (except for the library used as icon resource).