At this point you should be able to take a photo with the native Android camera app and then view the stored image back in your application. Works pretty well right? There is one catch though. If you rotate your device the image magically disappears. To get around this we use the to variables that we have heard much about yet – the constant PHOTO_TAKEN and the member boolean _taken. The following snippets demonstrate their use.