Maybe my question was a bit confusing.  I would like a different
caption on the home screen icon than on the title bar of the Activity
that is launched.  The reason is that the caption on the home screen
is truncated.  So I would like to have a shorter label  on the icon
and different text on the title of the Activity.

However it uses the same property for both the icon caption and the
title.  If the activity.label property is set it uses that in both
places.  Otherwise it uses the application.label property in both
places.  You can use the setTitle() method but that doesn't show until
after the activity is created so it shows one title for a while and
then show the other one which is kind of flaky.  Any ideas?

    <application
        android:label="@string/app_name"
        android:icon="@drawable/mainicon">

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


On Aug 22, 1:36 pm, jotobjects <[email protected]> wrote:
> When the app starts up it shows the activity label property in thetitlebar.  
> If you set a differenttitlefor the activity in onCreate
> that will show up later.  You see the launcher activitytitlefor a
> while and then the programmatictitlereplaces it, which is not very
> nice visually.
>
> The icon on the home screen uses the label for the activity.  What I'm
> trying to do is get a label for the icon on the home screen that is
> different from the activitytitlebar.  I tried setting the intent-
> filter label, but that didn't appear under the home screen icon.
>
> There is a label property for the application, the activity, and the
> intent-filter. The activity label is shown for the icon and thetitle
> and the other label properties are not shown
>
> Any ideas?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to