BlackBerry Forums Support Community

BlackBerry Forums Support Community (
-   Developer Forum (
-   -   capture image programmatically (

janaknayangaljanak 05-15-2012 04:26 AM

capture image programmatically

i am trying to capture an image using a background thread without open any screen.....

using following code this code is working fine but i want to do all process in a background thread:

cameraPlayer = Manager
// cameraPlayer.realize();
videoControl = (VideoControl) cameraPlayer
_videoField = (Field) videoControl.initDisplayMode(VideoControl.USE_GUI_ PRIMITIVE,

String encoding = null;
if (_encodings != null) {
// Use the user-selected encoding instead.
encoding = _encodings[1].getFullEncoding();
byte[] imageByte = videoControl.getSnapshot(encoding);


All times are GMT -5. The time now is 03:08 AM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.