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 8088997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:15:49+00:00 2026-06-05T19:15:49+00:00

I have an app with four activities. I have set the intent-filter on one

  • 0

I have an app with four activities. I have set the intent-filter on one of them so it will be displayed first to the user when he starts the app. It has a label that says “Add expense”.

Now the name under the icon for the app in the phone says “Add expense”.

I would like the activities to have their different labels because they are displayed in the menu at the top of each activity and help the user understand what the activity is about. But I want the app name to be something other than the label of the activity with the intent-filter.

Is that possible?

Part of my manifest:

As you can see I’ve tried to set android:label=”@string/app_name” on the application level but that doesn’t work. The label on the activity is displayed under the icon anyway.

<application
    android:icon="@drawable/ic_money_bag"
    android:label="@string/app_name" 
    android:theme="@android:style/Theme.Holo.Light" >
    <activity
        android:name=".AddExpenseActivity"
        android:label="@string/add_expense_header" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity
        android:name=".ListExpensesActivity"
        android:label="@string/list_expenses_header" >
        </activity>
    <activity
        android:name=".AddExpenseAccountActivity"
        android:label="@string/add_expense_account_header" />
    <activity
        android:name=".ListExpenseAccountsActivity"
        android:label="@string/list_expense_accounts_header" />
</application>

Regards,
Mattias

  • 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-06-05T19:15:52+00:00Added an answer on June 5, 2026 at 7:15 pm

    You can use setTitle(String s) in each activity to change the name that appears in the title bar dynamically. So for you setting it in onCreate to whatever you want might suffice.

    setTitle("Hello StackOverflow");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have four activities, A, B, C and D. app starts with activity A,
I have a web-app that has a master mysql db and four slave dbs.
I have set my app to update four xml feeds in the background (if
I have an iPhone app that has four tabs. On Tab 1 there is
I have a Weather app with four Activities. The main/launcher activity is 'invisible' using...
I have a data gathering app (terrestrial magnetic field strength) that has four phases;
I have develop one app in which four box question are there. all question
I need to build an app where I have four servers running and one
In my app I have four fields and each of them is list of
Windows Phone 7.1/7.5/Mango app. I have four different MediaElements on the page. One is

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.