I’m new at this.
Telegram, Whatsapp, Vk, Aliexpress – All this apps can write they folders in /Storage/emulated/0
How can I create my folder in this place for Android 5…10?
When I try to use File("/storage/emulated/0/", myfile) – it doesn’t work.
Please, can anyone give some mini example how can I create my files in storage
3
Answers
Since you haven’t written any code, I can’t tell you what you’re doing wrong. But this is something that might help you.
First you need to declare permissions on your manifest.
After that you can simply use this to create your folder.
Yes, You can create Folders inside the External Storage too.
But, keep in mind that you cannot use emulated/0 because it is different for different devices.
Although, Environment.getExternalStorageDirectory() is deprecated as of API29. So You can use getExternalDir() too.