Android: Is there a way to create hidden folders and hidden files?

Vivek picture Vivek · May 4, 2011 · Viewed 16k times · Source

I am a newbie android developer. I need to know if there is a way to create hidden folders and hidden files in android programatically. There must be a way to create hidden folders in sdcard. But I don't know how? Any help is appreciated. Thanks.

Answer

user166390 picture user166390 · May 4, 2011

I don't use Android (Read: this answer may be entirely wrong). However...

Since Android has *IX roots, then any file (or directory) beginning with a period ('.') should be hidden. Be warned, however, that this is merely a convention (to prevent the files from being listed in certain default conditions) and does not add any privacy or security to the files.

Happy coding.