How to hide a folder programmatically in Android [closed]

Android is based on Linux and it is not possible to hide files or folders apart from adding a . before the file or folder name. This will just hide thing for ‘ls’ but not for ‘ls -a’. Hence, in Android too, everyone can see all the files not matter how you hide it.

You can encrypt the file so that even after accessing, user can not make sense out of it.

Or you can transfer the file internal storage where another app and user itself cannot see only that app can access the file and delete the file from where it was.

Leave a Comment