Android Question Get Extra from Intent

Discussion in 'Android Questions' started by Quillok, May 10, 2015.

  1. Quillok

    Quillok Member Licensed 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:

    Code:
    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:

    Code:
    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 -.-
     
  2. Sorin Pohontu

    Sorin Pohontu Member Licensed User

    Hello.

    I think it should be Log(In.GetExtra("STREAM")) :)
     
  3. Quillok

    Quillok Member Licensed User

    unfortunately not... still getting "null" :/
     
  4. Erel

    Erel Administrator Staff Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice