Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid application label changes
    primarykey
    data
    text
    <p>I'm tearing my hair out over this one. I've got an application for which I use a short title to display in the launcher etc. I've also got a longer string that I use to display at the top of the screen from within the app (where there is more space). The observant will note that I do try to set NoTitleBar but not all devices appear to obey this style, which is why the long title must remain.</p> <p>The problem I am having is that the label used on the app icon in the laucnher &amp; desktop seemingly randomly reverts to the long string on some devices. On other devices everything is fine. I can't determine whether there are some artifacts lingering from an old version of the app, if its something I am doing wrong or if it's a bug with certain devices. The fact that its happening across multiple devices/vendors makes me tend to doubt the later.</p> <p>My AndroidManifest consists of the standard stuff; an application tag containing a variety of activities. For reasons I dont understand, I was able to fix the problem on some devices by adding an android:label to all my IntentFilters.</p> <p>This is basically what my AndroidManifest looks like:</p> <pre><code> &lt;application android:label="@string/global_app_short_name" android:icon="@drawable/app"&gt; &lt;activity android:name=".HomeActivity" android:launchMode="singleTask" android:theme="@android:style/Theme.Black.NoTitleBar"&gt; &lt;intent-filter android:label="@string/global_app_short_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=".A1" android:theme="@android:style/Theme.Black.NoTitleBar"&gt; &lt;intent-filter android:label="@string/global_app_short_name"&gt; &lt;action android:name="android.intent.action.VIEW"/&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;activity android:name=".A2" android:theme="@android:style/Theme.Black.NoTitleBar"&gt; &lt;intent-filter android:label="@string/global_app_short_name"&gt; &lt;action android:name="android.intent.action.VIEW"/&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;activity android:name=".A3" android:launchMode="singleTask" android:theme="@android:style/Theme.Black.NoTitleBar" android:windowSoftInputMode="stateHidden"&gt; &lt;intent-filter android:label="@string/global_app_short_name"&gt; &lt;action android:name="android.intent.action.VIEW"/&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;activity android:name=".A4" android:launchMode="singleTask" android:theme="@android:style/Theme.Black.NoTitleBar"&gt; &lt;intent-filter android:label="@string/global_app_short_name"&gt; &lt;action android:name="android.intent.action.VIEW"/&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;activity android:name=".A5" android:theme="@android:style/Theme.Black.NoTitleBar"&gt; &lt;intent-filter android:label="@string/global_app_short_name"&gt; &lt;action android:name="android.intent.action.VIEW"/&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;activity android:name=".A6" android:theme="@android:style/Theme.Black.NoTitleBar"&gt; &lt;intent-filter android:label="@string/global_app_short_name"&gt; &lt;action android:name="android.intent.action.VIEW"/&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;activity android:name=".A7" android:theme="@android:style/Theme.Black.NoTitleBar"&gt; &lt;intent-filter android:label="@string/global_app_short_name"&gt; ...some stuff... &lt;/intent-filter&gt; &lt;/activity&gt; &lt;/application&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    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.
    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