Note that there are some explanatory texts on larger screens.

plurals
  1. POWeird Android Launcher Icon Issue
    primarykey
    data
    text
    <p>I encountered a weird issue just on XHDPI devices with Android ver. 4.1</p> <p>I have declared the application icon in AndroidManifest.xml, and put every size of icons(with the same name) I need on to drawable-xhdpi, drawble-hdpi and drawable-mdpi folders.</p> <p>When I launch the application on mdpi (like Galaxy Ace) devices and hdpi (like Nexus One, Galaxy Ace II and emulators with Android ver. 2.2) it will display the correct icon I set. </p> <p>But the icon will become wrong, I mean it will display the Green Android icon, when I am trying to launch it on my Galaxy Nexus (4.1) and Emulator(4.1).</p> <p><img src="https://i.stack.imgur.com/GCn4Q.png" alt="The weird icon"></p> <p>I tried shut and reopen Eclipse, tried clean and rebuild the project, and I am sure the icon in every drawable folder is accessible (Can be opened and viewed). </p> <p>Here's the AndroidManifest.xml: NOTE: ic_launcher is the icon's name. I replace the default icon with mine.</p> <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.xxx.xxx" android:installLocation="preferExternal" android:versionCode="3" android:versionName="1.0" &gt; &lt;uses-sdk android:minSdkVersion="8" android:targetSdkVersion="15" /&gt; &lt;uses-permission android:name="android.permission.CAMERA" /&gt; &lt;uses-feature android:name="android.hardware.camera" /&gt; &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt; &lt;uses-permission android:name="android.permission.INTERNET" /&gt; &lt;application android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@android:style/Theme.Light.NoTitleBar.Fullscreen" &gt; &lt;activity android:name="A" android:label="@string/a" android:screenOrientation="portrait" &gt; &lt;intent-filter android:label="@string/app_name" &gt; &lt;action android:name="android.intent.action.MAIN" /&gt; &lt;category android:name="android.intent.category.LAUNCHER" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;activity android:name="B" android:launchMode="singleTask" android:screenOrientation="portrait" android:label="@string/app_name"&gt; &lt;/activity&gt; &lt;activity android:name="C" android:label="@string/c" android:screenOrientation="portrait" android:launchMode="singleTask"&gt; &lt;/activity&gt; &lt;activity android:name="D" android:permission="android.permission.CAMERA" android:screenOrientation="landscape" android:label="@string/app_name"&gt; &lt;/activity&gt; &lt;activity android:name="E" android:screenOrientation="portrait" android:label="@string/app_name"&gt; &lt;/activity&gt; &lt;activity android:name="F" android:label="@string/app_name"&gt;&lt;/activity&gt; &lt;/application&gt; &lt;/manifest&gt; </code></pre> <p>All these devices are kept unroot and stick with the original stock system.</p> <p>I went over nearly all of the SO's similar questions like: </p> <p><a href="https://stackoverflow.com/questions/7546351/android-launcher-icon-not-working">Android Launcher Icon not working</a></p> <p><a href="https://stackoverflow.com/questions/12022579/app-launcher-icon-is-wrong">App Launcher Icon Is Wrong</a></p> <p><a href="https://stackoverflow.com/questions/12157668/wrong-ic-launcher-icon-in-my-app">Wrong ic_launcher icon in my app</a></p> <p>But still no luck.</p> <p>Is there anybody get any idea with this? A bug in Android?</p> <p>Thanks in advance</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload