-1

I try to create a hidden folder in an external public directory using the code that follows

"${Environment.DIRECTORY_DCIM}/.folderName/"

The folder was created but the folder name was _.foldername that folder is visible in the external directory. how do I create a hidden folder in Android 12 anyone please help me?

  • Your 'code' does not create a folder to begin with. It does nothing. – blackapps Mar 17 '23 at 12:38
  • @blackapps No issue for folder creation. But the issue was folder name was created (_.folderName) expected result was (.folderName). Do you have any idea regarding hidden folder creation – Shobana Velmurugan Mar 22 '23 at 13:52

1 Answers1

1

You can't make without Permission.

  1. you need permission from the user
  2. user will choose allow then only you can otherwise you can't
  3. in case of scope storage you will have limited permission for public directory only like downloads, music, etc

you can refer this link