10-04-2011 04:50 PM
Hi
Wonder if there is an API i can tell the "Store pictures" user's preference in camera options.
Use case: bring up appropate folder using FilePicker if user wants to fetch a picture file
Using the System class i can detect if the device or media card is available.
http://www.blackberry.com/developers/docs/5.0.0api
But cannot tell if user prefer to save the pics in device / sd card.
Any one has an idea please share.
thanks.
10-04-2011 05:06 PM
By default the camera app
JChow wrote:
Hi
Wonder if there is an API i can tell the "Store pictures" user's preference in camera options.
Use case: bring up appropate folder using FilePicker if user wants to fetch a picture file
Using the System class i can detect if the device or media card is available.
http://www.blackberry.com/developers/docs/5.0.0api
/java/lang/System.html But cannot tell if user prefer to save the pics in device / sd card.
Any one has an idea please share.
thanks.
saves in the BlackBerry\camera on the sd card.
the filepicker doesnt allow you to pick folder.
10-04-2011 05:17 PM
thanks for responding.
If you have SD card on your device. then bring up camera app, option page from the menu then at the bottom you can choose to store pictures "On Media Card / On Device" . Actually you get prompted the first time a SD card is detected. But you can always change your preference in the option page.
You can use the FilePicker API to select a start path:
http://www.blackberry.com/developers/docs/5.0.0api
String startPath = "file://store/home/user/documents"
filePicker.setPath(startPath);
My goal is to make the start path the same as user preference
thanks
12-06-2012 05:55 AM - edited 12-06-2012 05:57 AM
Bumping an old thread.
Anyone knows how to find out User's preference in camera: "Store pictures: On Device / On Media Card"
My app would like to store the files in the same location.
12-06-2012 06:20 AM
I don't think there's a straightforward way. pretty sure the camera app stores the preference in the persistable store though, kudos to you if you manage to figure out the key.
or you can just replicate what the camera app is doing. Give the user a choice, and fall back to using store/home/user if sd card is not present.
12-06-2012 12:39 PM
I talked to some RIM ppl and quite sure the function is not exposed. Unfortunately i couldn't find a nice way to work around it. newton53's suggestion sounds good to me if you really need to implement something.
12-06-2012 02:16 PM
Well, I guess this thread will at least give answers to the ones seeking the same ![]()
Reading all values from persistant storage to find that one could take milleniums. And it is most probably in a container class so it would al be in vein
.
But, kudos for the suggestion ![]()