background - Is it possible to take photos programmatically without bringing the default camera application into foreground in blackberry.....? -
i developing application makes use of camera...and app's requirement :
i have take photos "already running" background application ; have keep camera application background......means want capture picture without disturbing current foreground applications.
and in addition without making camera shutter sound....???
is possible if call camera app - through invoke.invokeapplication(invoke.app_type_camera, new cameraarguments())...........
thanks of u...specially @donturner .....sorry come on post late.
after attempts hv found without bringing camera screen foreground cant capture snap.
1) if put camera screen background or
2) change visibility of videocontrol's class object false...
_videocontrol.setvisible(false);
then no bytes (null value) received by...
byte[] imagebytes = _videocontrol.getsnapshot( encoding );
so whats use of function....while r using video control class capture snap or video???
_videocontrol.setvisible(true);
i hv tried different trick......
i call thread before bring camera screen foreground off back-light of device.
then after bring camera screen foreground , capture snap.
i hv tested above trick on bb flip (4.6) , storm (5.0) devices , takes snapshots when device light off.
but become stuck on other problem....and camera shutter sound. hv tried lot couldn't success mute it....
as @michael donohue suggested, hv tried..
private void mutethread() { thread t = new thread(new runnable() { public void run() { try { int = 0; while (i < 50) { audio.setvolume(0); try { thread.sleep(50); } catch (interruptedexception e) { } i++; } system.out.println("\n\n >>>>> end of mute thread. <<<< \n\n"); } catch (exception e) { } } }); t.start(); }
but not working... if cant done how these application r providing facility...and wht kind of functionality hv used.
http://appworld.blackberry.com/webstore/content/97648/?lang=en
http://appworld.blackberry.com/webstore/content/79083/?lang=en
you cannot take photo programmatically without displaying camera preview feed user @ minimum need bring camera preview surface ui foreground.
Comments
Post a Comment