Android Question Reading Intent Filters Extra

Nerdworld

Member
Licensed User
Hey guys!

I'm finally out of ideas, why i'm stuck here.
I just can't read the extra information from the starting intent.

Manifest:
B4X:
AddActivityText(Main,
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
</intent-filter>)
Code & Output:
B4X:
' Code
Log(Activity.GetStartingIntent.ExtrasToString)
' Output = Bundle[{android.intent.extra.STREAM=content://media/external/images/media/25867}]
B4X:
' Code
Log(Activity.GetStartingIntent.HasExtra("android.intent.extra.STREAM"))
' Output = true
B4X:
' Code
Log(Activity.GetStartingIntent.GetExtra("android.intent.extra.STREAM"))
' Output = null
 
Top