I am trying to create a folder in device internal storage like the same way telegram and WhatsApp does in Android 11 and above devices without using manage access all files permission. any reference on how to achieve this.. ?
Asked
Active
Viewed 338 times
-1
-
Please tell full path of their directories. – blackapps Jan 16 '22 at 19:15
-
You can write without permission media files to dir picture and DCIM – Style-7 Jan 16 '22 at 19:34
-
/storage/emulated/0/Telegram @blackapps – Suraj pal Jan 17 '22 at 04:25
-
And for WhatApp? – blackapps Jan 17 '22 at 07:06
-
@blackapps I check again for WhatsApp they are storing their files in Android / media / com.whatsapp – Suraj pal Jan 17 '22 at 07:31
-
That is no full path. Please give full path like you did with Telegram. – blackapps Jan 17 '22 at 07:36
-
/storage/emulated/0/Android/media/com.whatsapp @blackapps – Suraj pal Jan 17 '22 at 07:49
1 Answers
0
For Android 11+.
For the Telegram style one use SAF. For instance ACTION_DOCUMENT_TREE and let the user create the directory.
For a folder like whatsapp just use mkdirs().

blackapps
- 8,011
- 2
- 11
- 25