I would like to create a folder which is password protected. I am able to create a folder in the following way, but how can I create a password protected folder?
<
Note: it is visible on windows pc
You can't create such a folder on sdcard. Everything that's saved onto sdcard can be accessed by other applications. If you want to create a folder which is not accessible from outside of your application use Context.getDir() method with mode set to MODE_PRIVATE:
Context ctx = getContext();
File folder = ctx.getDir("NewFolder", Context.MODE_PRIVATE);