I am developing some sort of web image viewer which gets a list of images from the web and shows it to the user. My problem is that when android goes into sleep mode by waiting for the screen to turn black or by pressing the powerbutton, my app gets destroyed and reloads when android awakens again. It is then reset and needs to reload all the images I downloaded earlier. When I download the images I put them in the cache and add a string id to a buffer class so the app can download images async in the background and the user can quickly navigate through images. Is there a way to prevent my app from being destroyed when android goes to sleep mode? Thanks in advance.