You can try this
its working
another approach taken from the Jukebox example here App Inventor Extensions: File | Pura Vida Apps
Taifun
What is the directory for both onboard and expandable storage of a device? I have used file:///mnt/sdcard/
but it’s only working for onboard storage. Do I have to read expandable storage separately with the help of another directory or is there any other combine directory to read whole device storage(onboard and expandable)?
It does not work on all devices.
Try using /storage/emulated/0/
Please elaborate this more.
/storage/emulated/0/
this is for device onboard(internal) storage & /storage/82C3-E96C/
(NOT WORKING) is for expandable(removable micro SD card) storage So Do I have to read both storage separately with the help of different directories or is there any other combine directory to read whole device storage(internal and micro SD card)?
Do I have to read both storage separately with the help of different directories or is there any other combine directory to read whole device storage(internal and micro SD card)?
I think you have to use different directories to read different storage directories.
I can be wrong because I have no knowledge of modern storage structures.
So you have to wait to get correct answer.
So Do I have to read both storage separately with the help of different directories or is there any other combine directory to read whole device storage(internal and micro SD card)?
See here:
Copy text.txt (3 Bytes) (“abc”) to the root directory of the external (removable) SDcard and try this: getDirs.apk (4.8 MB) : [grafik] [grafik]
and here:
The root directory of the External Storage is: file:///mnt/sdcard/ or file:///storage/emulated/0/ /storage/emulated/0/. file:///sdcard/Makeroid/library/ is the same as: file:///storage/emulated/0/Makeroid/library/ or /storage/emulated/0/Makeroid/library/ These dirs are visible / accessible on your device, where (from an Android point of view) this “External Storage” is called “Internal Storage” (see below): Internal Storage > Makeroid > library For a webView the path to the assets is …
Goal : Extraction of data from both internal and micro SD card(If expandable storage is available)
*** Any comments or suggestions would be appreciated.
Have you granted read / write permissions?
Yeah I have granted.
Everything seems correct.
It should work.
Last modification date 01/01/1970 05:30:00 AM (for each and every file)
Mistakes are solved here FileTools : Some tools to work with files - #168 by Coder007
What exactly is it about? What do you want to achieve?
Probably a bug.
Let me check it.
Could you add an option to sort(descending) files according to date of last modification?
add an option to sort(descending) files
See here:
As a test I have copied 8 gif files from the assets into different folders and show them in a ListView using Taifun’s File extension App Inventor Extensions: File | Pura Vida Apps. The order in which these files are listed seems to follow a principle, but it makes little sense. So to sort these files / list try the following: [grafik] [grafik] Note: it may take several seconds to list the gif files list_gif_sort.apk (4.9 MB)
Does my test APK (getDirs.apk) work for you?
Copy text.txt (3 Bytes) (“abc”) to the root directory of the external (removable) SDcard and try this: getDirs.apk (4.8 MB) : [grafik] [grafik]
Show this:
I haven’t tested the apk file of your. I just followed the process of the image, you have posted. My apk is working as it should.