11-02-2008 10:14 PM
I start the camera app by doing this
Invoke.invokeApplication(Invoke.APP_TYPE_CAMERA, new CameraArguments());
The camera app starts. I take a picture.
I am on a 9000 bold.
It you use the camera you will find you can't close the app until you get rid of the still image that you just took.
Picture then is a static view on the screen
if you press close (menu close) it does't go away.
If you press the esc key and then press close it goes away.
now in my application I need to simulate this but I can't get it to exit
I want to launch the app.
press the track ball to take the pic
save the pic.
EventInjector.invokeEvent( new EventInjector.KeyEvent( EventInjector.KeyEvent.KEY_DOWN, Characters.ESCAPE, 10 ));
EventInjector.invokeEvent( new EventInjector.KeyEvent( EventInjector.KeyEvent.KEY_UP, Characters.ESCAPE, 30 ));
And it exits ok
BUT... when I open the camera again (for the second time) the still image is on the screen from the last shot.
So, it didn't actually exit. The user has to press the stupid esc key and then take another picture.
Solved! Go to Solution.
11-11-2008 10:58 AM