i'm very new to android dev... i wanna know what's the best way to hide an image in android. I have an app where i take a photo, and i want that photo, can only be display inside my app.
The best way would be using the internal storage of the device. According to the developer's site:
You can save files directly on the device's internal storage. By default, files saved to the internal storage are private to your application and other applications cannot access them (nor can the user).
You can find all the details here: Using the Internal Storage
Bear in mind that there are some things that you should take into account; for example if that photo you mention is being taken through a camera intent the image will have to be first saved in a public folder (ie. in the external storage) for the camera to work properly and then you should move it to the internal storage (or copy it and then delete the original).
There are other methods:
It really depends if you want to make them totally inaccessible to other apps or if hiding it a little bit it's enough
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With