I just tried our sample app “Media/Camera” that is included with the Corona SDK (build #970) and it worked.
I tested it on the following devices:
- Galaxy Nexus running Android 4.0.4
- Kindle Fire HD running Android 4.0.3
- Samsung Galaxy SII running Android 2.3.4
- HTC Evo 4G running Android 2.2
If the device rebooted on you, then it sounds like the operating system crashed. That’s definitely not a Corona issue. Did you root your phone? Perhaps that is the cause of the OS crash.
Or perhaps the built-in camera app itself is crashing because you are out of space on external storage? You might want to double check that. In fact, I recommend that you try your device’s built-in camera app to see if it can take picture correctly as well.
okae, if you haven’t tried our Camera sample app, then I suggest you give it a try “as-is”. Note the build.settings file too, because it contains Android permissions that are very important to make camera functionality work.
Also, have a look at the Android log when running your app. You can do so by running the Android SDK tool “adb logcat” or “ddms”. This log may provide clues as to what exactly is going wrong. [import]uid: 32256 topic_id: 32632 reply_id: 131185[/import]