I've seen on the forum that some people are facing problems with contentChooser, me too! Nevertheless I followed the advices, I'm still facing the same problem: every now and then the imgChooser_result routine is triggered. What else can cause this problem?
I don't receive an error nor I can't see any entry in the logs
I don't receive an error nor I can't see any entry in the logs
B4X:
Sub Process_Globals
Dim ImageChooser As ContentChooser
End Sub
B4X:
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("detail")
ImageChooser.Initialize("imgChooser")
End Sub
B4X:
Sub btnOpladen_Click
ImageChooser.show("image/*", "Choose image")
End Sub
Sub imgChooser_Result(Success As Boolean, Dir As String, FileName As String)
Dim FileNM As String
Dim j As HttpJob
Dim out As OutputStream
If Success Then
ToastMessageShow("Foto geupload",False)
End If
End Sub