android dev - changed ic_laucher but doesn't appear when running - android

I deleted the standard android robot icon ic_launcher and added mine ( in various densities)
and I have already in may manifest.xml
<application>
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
....
but after clean/build when running I still have the tiny android robot in my ActionBar and my app launch icon is still the android default app robot icon ..
I guess I miss some additional parameter ??
my manifest file is surely wrong...
indicated by the colors.... drawable icon should be blue...

Try uninstalling the app from the device and re-installing it to see the icon changes.
Yeah, the Application tag in your manifest file should set the icon like this:
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >

it was an error in my xml file....
<application
android:name="SwimmerApp"
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />

Had the same issue, solved it after copying the ic_launcher.png to the drawable-mdpi folder under the res.

Related

react native app icon problem. App icon is not changing in app menu

I am using react native version 0.58.
I replaced my app icons with default ic_launcher.png in all mipmap folders.But app icon is still default android icon.I am sure that my png sizes are right for corresponding mipmap folder.
thanks
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.cekilissepeti">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<uses-permission tools:node="remove" android:name="android.permission.READ_PHONE_STATE" />
<application
android:name=".MainApplication"
android:label="#string/app_name"
android:icon="#mipmap/ic_launcher"
android:roundIcon="#mipmap/ic_launcher_round"
android:allowBackup="false"
android:theme="#style/AppTheme">
<activity
android:name=".MainActivity"
android:label="#string/app_name"
android:screenOrientation="portrait"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
</application>
I had to delete 'mipmap-anydpi-v26' from app/src/main/res folder which contained two xml files, one each, for both the normal icon, and the rounded icon.
I had to rename the files to something different than ic_launcher_round and ic_launcher,
then I updated the AndroidMaifest.xml:
<application
android:name=".MainApplication"
android:label="#string/app_name"
android:icon="#mipmap/launcher_new_name"
android:roundIcon="#mipmap/launcher_new_name_round"
If you're using MIUI on your phone you need to switch your theme.
See https://stackoverflow.com/a/15529525/15609577
Check if there is icons in android/app/src/debug/res
Some auto icon-generator tools throw icons in all android flavors
If you found icons there delete them, you should have only one place for icons under the /main/res folder
I am using react-native version 0.68.2 and my app icon was showing abnormal
Solution Worked for me:
open project
cd adroid->app->src->main->res
see for folder named as 'mipmap-anydpi-v26'
Delete the folder
rebuild your project.
Enjoy!

label appears from the GoPro SDK dependency

I have a string resource for an application label:
<string name="app_name">My application</string>
My AndroidManifest.xml is classical:
<manifest.. >
<application
android:name="my.package"
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:largeHeap="true"
android:supportsRtl="true"
android:theme="#style/AppTheme"
tools:replace="android:icon">
<activity ...
I have GoPro SDK as a dependency. And on some devices (HTC U Play) my application is signed not as "My application", but as "GoPro SDK".
I have figured out that GoPro SDK valuses are realy containing resource:
<string name="app_name">GoPro SDK</string>
GoPro SDK is an .arr archive.
How to fix it without renaming of the variable app_name?
Try to add to application tag the following attribute:
<application
tools:replace="label, icon"/>
also I found that some of activities may contain label without tools:replace="label"
<activity android:label="#string/app_name" />
Just remove label from activities or add tools:replace="label" attribute

Modfiying Android Manifest

So I have been following a tutorial titled 31 days of Android. I am having an issue with one of the tutorials. It calls for me to modify the androidmanifest.xml file but when I do but it doesn't work. Everytime I run the application it crushes after I press button 2. Here is the code they wanted me to add
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:name="MyApplication">
and here is the code looks after I have added that code to my file.
<application android:icon="#drawable/icon" android:label="#string/app_name" android:name="MyApplication">
I did not add the android:icon="#drawable/ic_launcher" because it gave me an error which read "no resoucre found that matches the given name". Any help would be appreciated.
The error is because there is no icon in your project,
Look in Project/res/drawable/ ...
The ic_launcher is the default icon, so just replace
android:icon="#drawable/icon"
By :
android:icon="#drawable/ic_launcher"

Element type "application" must be followed by either attribute specifications, ">" or "/>" #2

I keep getting an error that says, "Element type "application" must be followed by either attribute specifications, ">" or "/>"."
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.thenewboston.sammy"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<application android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
I'm getting the error right below this:
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
This is the right form, see if you didn't close some tags.
<application android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
...>
<activity ...>
<intent-filter>
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
As my friend said , check the right format
For me It was like this :
BEFORE :
<activity android:name=".DisplayMessageActivity" android:label="display_message_activity"
</activity>
AFTER:
<activity android:name=".DisplayMessageActivity" android:label="display_message_activity" >
</activity>
Then the error disappeared
In my case, a comment had been placed (by the build tools?) inside the application tag:
<application android:allowBackup="true"
<!-- android:debuggable="true" -->
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/GdxTheme">
After I removed the entire debuggable=true comment line - everything worked.
I just ran into this error for a completely different reason. For some reason Android Studio had replaced every instance of the string name with "name" (e.g. it wrapped them all in double quotes) in my XML. It completely broke everything.
I had to clear out the double quotes from everything, clean the project and rebuild it.
If you're a flutter developer and you're getting this exception you must know there are two AndroidManifest file in your flutter project. One is inside debug folder and another one is main folder. My main folder AndroidManifest is ok and well formatted but AndroidManifest in debug folder is not ok and not well formatted due to a git conflict.
you must fix this.

Android app no launch icon

I have put together a simple application and when I am installing the app the icon displays but once it's installed there is no launch icon.
Here is my AndroidManifest.xml:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.SiteTools.convertme"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="16" />
<application
android:allowBackup="true"
android:icon="#drawable/launch_icon"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
</application>
</manifest>
I have tried renaming the icons but it hasn't helped, I have tested on two devices and neither get the launch icon.
I use eclipse.
You need to add an Intent Filter, or else Android won't know what application to launch. Also, your application should include the name of the app. I've included a name below as someActivity, change it to your app as appropriate. This can be done by changing your application to the following:
<application
android:allowBackup="true"
android:icon="#drawable/launch_icon"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name="someActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
Did you create icons for all resolutions ? . Under your res folder add the appropiate icon size for each folder.
drawable-hdpi
drawable-ldpi
drawable-mdpi
drawable-xhdpi
Your device should pick it up from there according to its resolution

Categories

Resources