Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6388387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:16:21+00:00 2026-05-25T03:16:21+00:00

This question has been asked before – but with no satisfying answer at all!

  • 0

This question has been asked before – but with no satisfying answer at all! So I’m trying it again.

I want to give my application launcher icon (the one that is displayed on the startscreen!) a different, shorter caption. It seems the launcher takes its label from the mainfest section about the main activity’s label, as here:

<activity android:name="MainActivity" android:label="@string/app_short_name">
<intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

I already changed the original reference to my app’s name @string/app_name to a different, shorter string resource here.

BUT – big BUT: this also of course changes this activity’s default title! And I did not want that to happen, there’s enough space for a long application name! Setting the long title again in onCreate using the setTitle(int) method does no good either, because the short name will be visible to the user for a short time, but long enough to notice!

And – please don’t answer my question by refering to a custom titlebar… I do not want to go that long way, just because of a stupid string title! It’s a pain to draw a custom title bar for so little effect!

Is there no easy way to just give the launcher a different string to display?
Thanks for your answers!

Edit: One more reason why having a custom titlebar is a pain is that it will not look like the default titlebar, I would have to explicitly do things to make it look alike on each device! And that can’t be a solution if, after all, I don’t want a different appearance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T03:16:21+00:00Added an answer on May 25, 2026 at 3:16 am

    Apparently <intent-filter> can have a label attribute. If it’s absent the label is inherited from the parent component (either Activity or Application). So using this, you can set a label for the launcher icon, while still having the Activity with its own title.

    Note that, while this works on emulators, it might not work on real devices, because it depends on the launcher implementation that is used.

    http://developer.android.com/guide/topics/manifest/intent-filter-element.html

    <activity
      android:name=".ui.HomeActivity"
      android:label="@string/title_home_activity"
      android:icon="@drawable/icon">
      <intent-filter android:label="@string/app_name">
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
      </intent-filter>
    </activity>
    

    Side Note: <intent-filter> can also have an icon attribute, but
    inexplicably it does not override the icon specified in the
    Activity. This may be important to you if you plan to use the native
    ActionBar in SDK 11+, which uses Icon and Logo specified on the
    Activity.

    Added Info: The label is being inherited from Activity and not the Application.

     <application
            android:allowBackup="true"
            android:icon="@drawable/ic_launcher"       
            android:label="@string/app_name"
            android:theme="@style/AppTheme" >
            
            <activity
                android:name=".StartActivity"
                android:label="@string/app_long_name" >
                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />
                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </activity>
    

    In this case, app_long_name will be displayed with launcher icon, if we do not put label inside as mentioned above.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question has been asked before but 1) the user never accepted an answer
I know this question has been asked before, but there was no clear answer.
I know this question has been asked before, but many answers don't give clear
This question has been asked before ( link ) but I have slightly different
I know this question has been asked before, but I ran into a problem.
I know this specific question has been asked before , but I am not
I know this question has been asked a bit before. But looking around I
It's quite possible a question like this has been asked before, but I can't
This has been asked before (question no. 308581) , but that particular question and
This question has been asked before in a more general way. I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.