Unable to see the values set in EXTRA_TITLE

225 Views Asked by At

I am building an app say Tx , which call's the createChooser using the below code.

Intent shareIntent = new Intent("com.myapplication.test");
shareIntent.putExtra(Intent.EXTRA_TITLE, "Sharing ..");
shareIntent.putExtra(Intent.EXTRA_TEXT,"Shared from Tx app.." );
shareIntent.setType("text/plain");
startActivity(Intent.createChooser(shareIntent,"Choose the app ..")));

I have also built few app's with below in their androidManfiest.xml files.

<intent-filter>
     <action android:name="com.myapplication.test" />
     <category android:name="android.intent.category.DEFAULT" />
     <data android:mimeType="text/plain" />
</intent-filter>

When Tx's createChooser is called, I am able to see all the app's where -com.myapplication.test is present & also the title as - Choose the app .. . However, I am not able to see the EXTRA_TITLE which is set to "Sharing ..".

Is there any way I can show this in the chooser? any help would be highly appreciated.

0

There are 0 best solutions below