I need to download an image from url and save it in the app's drawable-hdpi
folder and then show it in ImageView. How I can do it?
I tried using this and this code but it's not a good solution for me because this code saves on the SDCard.
I need to download an image from url and save it in the app's drawable-hdpi
folder and then show it in ImageView. How I can do it?
I tried using this and this code but it's not a good solution for me because this code saves on the SDCard.
You cannot save in the app package. You only have these options:
Your data storage options are the following:
Shared Preferences Store private primitive data in key-value pairs. Internal Storage Store private data on the device memory. External Storage Store public data on the shared external storage. SQLite Databases Store structured data in a private database. Network Connection Store data on the web with your own network server.
more information: http://developer.android.com/guide/topics/data/data-storage.html