Hi all,
After reading this post, I've created a midlet with this Invoke to use camera
And, when the user press the softkey Camera I execute the follow code:
Code:
if ( c.equals(cmdCamera)) {
//invoking camera
Invoke.invokeApplication(Invoke.APP_TYPE_CAMERA, new CameraArguments());
// Try to kill camera app here by injecting esc.
EventInjector.KeyEvent inject = new EventInjector.KeyEvent(EventInjector.KeyEvent.KEY_DOWN,Characters.ESCAPE,0,50);
inject.post();
inject.post();
}
But, when I tried on emulador I got a Runtime Error. Does anyone have any idea?
Thanks
Neto Marin