07-25-2014 06:51 PM
I want to present the user with a camera that can take a picture, and only a picture. No video or time-shift.
I want flash to be defaulted to auto and I do not want users to be able to select the camera roll.
I also do not want the image to be saved to the camera roll.
It seems there are several different ways in QML, qt, c++ and c to achieve this. What is the best practice for showing a camera that can just take a picture and not save the image to the camera roll?
Solved! Go to Solution.
07-28-2014 05:21 PM
Invoking the camera card is your easiest bet. you can specify that it run in photo mode only. I dont think you can specify flash modes, etc. explicitly. they will be based on the user's current camera app settings.
Your next best bet is using the Cascades Camera control. it's pretty easy to use and has a bit more controllability.
I have lots of samples (but they are mainly C or C++) here...
check for the link to "PhotoBomber" or hunt around for "Cloudy Pics" which Paul Bernhardt wrote.
07-28-2014 05:33 PM
Same with Cascades Camera API.
Only way to do this presently is via native C/C++ code, which you probably don't want to deal with.
Though if you do... you can grab the "BestCamera" sample and use that as a starting point. I wanted to turn this into a custom component, but time has not permitted yet
07-29-2014 11:31 AM
You can use the camera control in Cascades to save it to somewhere other than the camera roll, but it can't be inside your apps private directory. So you could save it to the SD card or Dropbox or something.
If you need the image to be stored in your app's private directory, or never written to the filesystem at all, as Sean says BestCamera with the C API is your best bet.
07-29-2014 11:38 AM - edited 07-29-2014 11:39 AM
Correction: The camera roll can be pointed inside your private sandbox, but only in software versions newer than 10.2.1 (inclusive).
I've asked for the docs to be updated on this, but I don't think that has happened yet.
07-30-2014 03:22 PM