Help on App Specific Directory

Hello everyone, please I am working on application which users can download mp3 files, I tried to publish it on Play Store but was rejected due to all file access. Now I am using some extensions developed by @Anke and Taifun file and Colintree extensions which requires no external storage permission. My problem is that, the files are downloading but can’t be accessed.

This is how I set the folder: file///storage/emulated/0/Download/ASD
This is the result I’m getting


These are my blocks

Please help me out

You have to create app specific directory to make download your files in users device … Better use asd extension available in community …
Search for asd .
@Saifullahi_Mannir

@Alapjeet_Singh thank you I downloaded the extension but unfortunately I couldn’t understand how to use it from the available documentation… Please can you help me with the blocks, these are the available blocks:
asdlatest

The folder I want access is file///storage/emulated/0/Download/ASD

Personally I don’t have knowledge of this, but i believe that maybe it’ll be causing issue

Isn’t there file:/// instead of file///

1 Like

The folder is not located where it should be. In your example it is in the /Download folder, which you don’t want. The correct path to the ASD is /storage/emulated/0/Android/data/packageName/files.

1 Like

@Saifullahi_Mannir

  • ASD - App Specific Directory [Only the app that created it can access it]
    path of ASD- /storage/emulated/0/Android/data/packageName/files/

  • Shared folder (Download , Document ,etc) [Any app can access it]
    path of download folder- /storage/emulated/0/Download/
    path of document folder- /storage/emulated/0/Document/

Both are distinctive.

2 Likes

I use this exactly, but it is still not working… @iaditya_nanda please can you inspect my aia?
ASDdir.aia (297.5 KB)

Thank you sir

This is all you need:

Of course it also works with my extensions (downloadToASD & installAPK), but there is no need for it in Niotron. Just use the Downloader component.

2 Likes

Btw, your topic / blocks have nothing to do with the ASD, but with (downloading to) Shared folders (like /Download/...).
So change it or I’ll do it.

2 Likes

@Anke file is already downloading, all I need is for my app to list the files on Colintree listview without seeking admission to read or write the device storage.

Thank you sir

Ah, I misunderstood. I’ve tested it now and I don’t see where your problem with storage permissions should be. Of course, you shouldn’t hard code the path to the ASD.

1 Like

… and you should list the MP3s only from the sub-folder in the ASD: /Download/ASD/...

1 Like

Thank you sir, I tried it and it works fine
Thank you once again

Off Topic

ma’am :sweat_smile:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.