Modified version of Mike Newell's Camera app ( http://iwearshorts.com/blog/android-development-102/)