Android Question How to get URI after file selection from Intent

artsoft

Active Member
Licensed User
Longtime User
Hi!

Short question (sorry, if this is a simple or stupid question):

How I can get the file URI after selection a ZIP-File from Intent in order to read its content?

My test app is simple:
1 button and after click on it, this is executed:

Button click action::
Dim ed As Intent
ed.Initialize("android.intent.action.GET_CONTENT", "")
ed.SetType("application/zip")
StartActivity(ed)

Then the big file selector is shown and I have the possibility to select a file from - in example - "OneDrive" folder.

Then I click on this OneDrive-file and then ... I dont knwo how to get this file in order to read it.

It would be great if somebody could help here!
Thanks in advance.

Best regards
ARTsoft
 

agraham

Expert
Licensed User
Longtime User
 
Upvote 0

artsoft

Active Member
Licensed User
Longtime User

Hey agraham - you are absolutely right!! :)
I remember this code using in an old test app some time ago.
Thanks a lot, you made my day!
 
Upvote 0
Top