I want to confirm existed directory and create a subdirectory.
I am using android 22.
"_vMTO" folder is existed, but app said "no".
my App is working well under ver.7 of Adroid, but not work on ver.22.
I want to confirm existed directory and create a subdirectory.
I am using android 22.
"_vMTO" folder is existed, but app said "no".
my App is working well under ver.7 of Adroid, but not work on ver.22.
Android 22 ? Do you mean 5.0 / 5.1 ?
The File component uses/needs a relative path:
FileScope = Legacy (or Shared)
path = /_vMTO"
"my App is working well under ver.7 of Adroid"
No.
You can't access arbitrary directories in the root directory of the emulated sdcard anymore (EDIT: anymore = newer devices)
Use shared storage, for example /Download
Taifun
Of course, he can:
READ
permission).READ
permission if necessary)To be more specific, on newer devices you can't create subdirectories everywhere anymore... use shared storage and read the previously mentioned guide
Taifun
my android ver. is 14.
Thank you very much. It's working.
and other problems related same as I noted are existed.
Please advice me how to solve it.
What exactly is working?
I don't think there is much working...
It looks like you forgot to read the previously mentioned guide
And if you use the FikeListAsync method, then you should continue with your blocks in the AfterFileListAsync event
You are on Android 14, so you can't access arbitrary directories anymore, use shared storage
As you try to access non media files, you will need SAF for those non media files, which are not owned by your app
Taifun
Yes, because
Use directory /Download/_vMto
This will work only for media files
Taifun
Hi~
You mean TaifunFile.FileList is not working on Ver+14?
I tried it as your comment, a .txt file copied to /Download/_vMto , but it is not working.
Would you please advice me other solution?
It's very important for me.
Yes, sorry, this is not working, because you are trying to access non media files, which are not owned by your app...
Therefore
Taifun
Do you plan to publish your app in Google Play? If not, you also can consider this approach
Taifun
Hi~
Thank you very much for your attention.
My app is not published and it is made for private usage.
And I modified my App as advice bellow, but it's not working.
There are problems "External permission denied" still existed.
Would you like to provide a sample .aia for me?
It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.
To get an image of your blocks, right click in the Blocks Editor and select "Download Blocks as Image". You might want to use an image editor to crop etc. if required. Then post it here in the community.
Taifun
Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.
Hi~
Thank you so much ^,^
Finally, I want to set....
set.SpnFiles.ElementsFromString.to .......
I hope you give me nice solution.
Have a nice day~~~~