It seems to be the simplest thing in the world: taking a picture within your Android app using the default camera activity. However, there are many pitfalls which are covered in several posts across the web, such as:
- null intents being passed back,
- the orientation of the picture not being correct, or
- OutOfMemoryErrors.
To safe you some time, I released my soultion as an open source project on GitHub: