I let the user choose a pic and then "ChooserResult" should be called.
Strage: In debug mode it works all the time, in release it fails (sometimes and sometimes not). No logs seen. Any ideas?
Problem: It doesn't get back to ChooserResult.
Code:
Sub choose_pic
Dim chooser As ContentChooser
If chooser.IsInitialized = False Then
chooser.Initialize("chooser")
End If
chooser.show("image/*", "Choose image")
End Sub
Sub chooser_Result(Success As Boolean, Dir As String, FileName As String)
PicID=""
Msgbox("Picture Selected","")
If Success Then ...
Got that code part from an example. Now I've put the DIM of the chooser in Process Globals and the initialize in Activity_Create and it works ...