I have a Droid X, which has a physical camera button. I am using the example used here: http://marakana.com/forums/android/examples/39.html
The app sort-of works. The on-screen button captures and displays the preview image. But if I push the physical camera button, the app crashes.
How should I handle this, and more importantly – is this going to cause problems across different devices that do / do not have physical buttons?
You need to override
onKeyDownin yourActivity