Im my app when the splash screen gets started I am just hitting an URL and getting back an XML file. From that XML file i am parsing out data such as an user name, id and an URL to download an image. From that url i want to download an image and i want to store the image in a particular name in my app itself.I want to use the same image as a background in another activity. How can i download and store the image in my app. Where can it be stored in my app, either in raw folder or in drawable.
Before storing the name how come the image can be set as a background image in the particular activity, Please help me friends
This is the code to download your image from an url :
Note that it should be done asynchronously (like in an asynctask)
Than you can store the Bitmap on the system using:
Note that this is just an example on how to store your image and there is other ways. You should look at documentation anyway.