When your device is rotated the onSaveInstanceState method is called. This gives you an opportunity to save any details about your application by pushing data into a Bundle object. When the device detects that the rotation is complete, onRestoreInstanceState and the Bundle that you pushed data into is passed through. Using this bundle you can restore the bitmap image.