1

I have an app named 'TwiOld'. It is an extension to twitter for Android app.

This how i start it : open twitter app , select a tweet and hit share button.

How do i have same app name in launcher and different label (circled below in image) in share menu ?

enter image description here

NoobDeveloper
  • 1,877
  • 6
  • 30
  • 55

3 Answers3

1

It's the same icon as your application icon.

Leandros
  • 16,805
  • 9
  • 69
  • 108
0

Try using LabeledIntent, see usage example here: How to filter specific apps for ACTION_SEND intent (and set a different text for each app)

you could set the text using this constructor

LabeledIntent(Intent origIntent, String sourcePackage, CharSequence nonLocalizedLabel, int icon)

Create a labeled intent from the given intent, supplying a textual label and icon resource for it.

taken from:

https://developer.android.com/reference/android/content/pm/LabeledIntent.html

Community
  • 1
  • 1
rexxar
  • 1,671
  • 1
  • 21
  • 27
0

In your manifest, simply add the label and icon attributes to your intent activity.

<activity
        android:name=".IntentActivity"
        android:enabled="true"
        android:exported="true"

        android:icon="@drawable/custom_icon"
        android:label="@string/custom_label">
        <intent-filter>
        ...
        </intent-filter>
</activity>
Chirag Kalra
  • 509
  • 2
  • 8
  • 23