How to hide a folder in sdcard in android

后端 未结 4 648
温柔的废话
温柔的废话 2020-11-28 14:33

I am developing an android application, It create some folders at starting of the application, which have images, video files and subfolder, i want to hide these folders and

相关标签:
4条回答
  • 2020-11-28 14:53

    There are various ways to hide folder on Android inside a memory card. The best two method I enjoyed using are: Hide Foler In Android Without App And the second method is with the use of App to hide folder on Android. Both method work perfectly depending on your choice.

    0 讨论(0)
  • 2020-11-28 14:55

    So, as ingsaurabh said correctly, a "." is all you need. If a file name starts with it, most file browsers will not display the file. But it is not directly invisible (e.g. the Samsung stock file manager has an option to display such files and folders). So you cannot ever be sure that the user will not see the files, especially if the user uses different apps to access files on sdcard.

    The only way to hide your files is the internal storage since these files are private to your application. However it's not a good idea to store large amount of data in internal storage (it will give your app bad rating, that's for sure).

    It's a good thing to stick to the guideline in the Data Storage Dev Guide, thus saving your data to the folder /Android/data/<package_name>/files/.

    0 讨论(0)
  • 2020-11-28 14:58

    If you want to hide folder in Android or any Linux based system just add . as prefix to folder or file name.

    However if you mount your SD card on Windows machine then these folders will be visible, with the . in front of the folder name, as a normal folder.

    0 讨论(0)
  • 2020-11-28 15:03

    This "." dot method doesn't have any security. Because you cann't use any password to unlock it. Any user can show hidden files and unlock it by removing "." symbol. For this reason you may use free file hide apps to protect you privacy.

    0 讨论(0)
提交回复
热议问题