Nerdworld Member Licensed User Longtime User Aug 10, 2014 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Aug 10, 2014 #2 Try this: B4X: Dim in As JavaObject = Activity.GetStartingIntent Log(in.RunMethod("getParcelableExtra", Array("android.intent.extra.STREAM")) Upvote 0
Try this: B4X: Dim in As JavaObject = Activity.GetStartingIntent Log(in.RunMethod("getParcelableExtra", Array("android.intent.extra.STREAM"))
Nerdworld Member Licensed User Longtime User Aug 10, 2014 #3 Works like a charm - thank you! Upvote 0