Android Question How to catch intent Success/Fail ?

Discussion in 'Android Questions' started by FrankBerra, Apr 17, 2015.

  1. FrankBerra

    FrankBerra Active Member Licensed User

    Hi all,
    i am using an external gallery app to crop images and i am using the following syntax:

    Dim i As Intent
    "", ParseUri("file://" & GetPathFromContentResult(SelectedPhoto)))
    "output", ParseUri("file://" & File.Combine(File.DirDefaultExternal, "Photo.jpg")))
    It works perfectly but when i come back to my app from the gallery app i don't know how to catch the intent result. I want to know if the intent completed succesfully or not.
    Actually i am using the "Activity_Resume" in which i put some routines that check if the cropped image is there.
    The problem is that this routines are executed every time i resume the app and in my opinion this is not the best programming tecnique ;)

    Is there any better solution?

    Thanks in advance
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. FrankBerra

    FrankBerra Active Member Licensed User

    Super! It works perfectly, thank you!
  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