bitsabhi
bitsabhi

Reputation: 778

How to store files in android device's memory without the user being able to see it?

Some of the music apps lets users to download songs over internet. But the user can access those files through app only. These files are not visible in folders like downloads/gallery etc. How do they achieve it?

I am assuming storing big files in-app is not a good idea!

Upvotes: 0

Views: 44

Answers (1)

Peter R
Peter R

Reputation: 419

Create your file in private folder app.

myPath = new File(this.context.getFilesDir(), "nameOfImage");

See more - Android Developers.

Upvotes: 1

Related Questions