Android Question choose an image from the gallery

Yeshua

Member
Licensed User
Longtime User
I used this method to choose an image from the gallery. . .
B4X:
Sub Load_Click
    LoadSD.Initialize("chooser")
    LoadSD.Show("image/*","Choose image")
End sub

Sub chooser_Result (Success As Boolean, Dir As String, FileName As String)
    If Success Then
    End if
End Sub

but if I use this method. . .
B4X:
Sub Load_Click
    Dim i As Intent
    i.Initialize(i.ACTION_PICK, "")
    i.SetType("image/*")     
    StartActivity(i)
End Sub

What I have to edit in the "sub chooser_Result"?
B4X:
Sub ???????_Result (Success As Boolean, Dir As String, FileName As String)
    If Success Then
    End if
End Sub
 
Top