I want take pictures using black berry camera for my app, it is possible in v5.0 and yes then how?
标签:
blackberry
相关问题
- How to make background of BrowserField transparent
- Eclipse Blackberry Preprocessor Not Working?
- Cannot register in sample BlackBerry push applicat
- Problem sending AJAX request with headers on Black
- decrypting data with AES/CBC/PKCS5Padding using bl
相关文章
- To get the module names in blackberry
- How to close a global dialog and display another i
- How to install a draft app on a blackberry sandbox
- FB SDK not working on OS 7
- Parent & Child Node with different images & Clicka
- SQLite for BlackBerry
- How to send SMS Programmatically in Blackberry
- Twitter Integration in Blackberry: Login Page not
Take a look at samples that come with the BB SDK installation on your PC. There is CameraDemo sample. You can just try searching for CameraDemo.java on your HDD if you're unsure where those samples are.
Yes it is definitely possible, but not a very simple task if you don't get some advice up front.
First and foremost, there is some sample code that is shipped with the Eclipse package at least (CameraDemo) that shows how to create a viewfiender using a Field, Player, and VideoScreen. The biggest issue is third party developers cannot overlay anything on top of the view finder (which is the what they'll call the Field after you set it as such with a VideoControl.
Also, you are very limited to what size you can set the Field -- I only got half size and fullscreen working, some dimensions got ignored and others caused it to not be displayed at all.
Here is some code that shows this:
After you do this you can use
to snap the picture. To determine what sizeAndEncodingParameters your device supports, you can use
System.getProperty("video.snapshot.encodings");
which will return aString[]
that you can iterate over to determine what to use.