i’m trying to create an app in which upon clicking a button all the pdf files will be shown and after selection the selected file can be viewed within the app and also uploaded to firebase
i’m using the file picker extension from deep host that is able to display list of pdf files but after selection, the file path its providing is something like document:8987
i need help in displaying the list of pdf files and then selecting a file and getting its file path.
i also tried using activity starter but i don’t know what to do beyond this
I already tired them both, the extension causes the app to crash after picking the pdf and taifun’s solution says no pdf selected and does not return path instead gives /document%3A8987 also tried to convert this into file path using taifuns file extension but that dosen’t work either (android 11). @Taifun @Boban
I think its about result uri and file path.
Try my block
Work on android 10
Extention to get path from data uri : filetools by @vknow360
Share your block button1 and activity starter for pick and open
Its work for me. Android10.
I dont know with android 11. I have not yet
any other alternate method?
What is label1 text result
@karthik2 Try using this extension
Can you post an APK? I can test.
T12.apk (5.2 MB)
Android10
Apk pickPDF.apk (5.2 MB)
Aia pickPDF.aia (31.7 KB)
For apk, add block ask for permission : android.permission.READ_EXTERNAL_STORAGE
Your apk work fine for me
See video