Android Question Get Extra from Intent

Quillok

Member
Licensed User
Longtime User
Hi,

i've got a little problem, but I'm sure it's totally easy to solve, but my head won't help me correctly to get it.

I send an image to my app, to show it there in an imageview, but i'm not able to get the path.

Thats my code:

B4X:
Sub Activity_Resume
Dim In As Intent
In = Activity.GetStartingIntent

Log(In.ExtrasToString)

Log(In.GetExtra("android.intent.extra.STREAM"))

End Sub

and thats my log:

B4X:
LogCat connected to: 042970268291b995
--------- beginning of system


--------- beginning of main

SANDBOX: Adjust is running in Sandbox mode. Use this setting for testing. Don't forget to set the environment to `production` before publishing!


** Activity (main) Create, isFirst = false **


** Activity (main) Resume **
Bundle[{EXTRA_ACTIVITY_IS_ENTRY_POINT=false, task_launched_for_result=true, android.intent.extra.STREAM=content://media/external/images/media/88259}]

null

What did I wrong? I thought "null" should be content://media/external/images/media/88259, but I think I'm totally wrong with it :/

Can anybody help me? Who I can extract the path from the intent to open the image in my app?

I feel so stupid at the moment -.-
 
Top