Hi!
In one of my activities, I use this ContentChooser in order to select a ZIP file:
In my manifest file this permission is set:
AddPermission(android.permission.READ_EXTERNAL_STORAGE)
So I have access to the files and I tried the selection with 5 (!) different file manager apps and each of them allows the selection of the given ZIP, but this method was never triggered:
zipChooser_Result
No message was displayed on GUI after the selection of the ZIP file and no halt at any breakpoint within the debugger ... within this method.
Perhaps, the given mime type is wrong? I also used "zip/*" - but no success.
I am thankful for any help.
Regards
ARTsoft
In one of my activities, I use this ContentChooser in order to select a ZIP file:
B4X:
Sub handleImport()
Private zipChooser As ContentChooser
zipChooser.Initialize("zipChooser")
zipChooser.show("application/zip", "Please select zip file")
End Sub
Sub zipChooser_Result(Success As Boolean, Dir As String, FileName As String)
If Success Then
MsgUtils.Info(Dir & " | File: " & FileName)
Else
MsgUtils.Info("Cancel")
End If
End Sub
In my manifest file this permission is set:
AddPermission(android.permission.READ_EXTERNAL_STORAGE)
So I have access to the files and I tried the selection with 5 (!) different file manager apps and each of them allows the selection of the given ZIP, but this method was never triggered:
zipChooser_Result
No message was displayed on GUI after the selection of the ZIP file and no halt at any breakpoint within the debugger ... within this method.
Perhaps, the given mime type is wrong? I also used "zip/*" - but no success.
I am thankful for any help.
Regards
ARTsoft