Closing the default camera in Blackberry programat

2019-08-14 05:46发布

问题:

In my application, Im using the default blackberry camera player to capture images using this.. - Invoke.invokeApplication(Invoke.APP_TYPE_CAMERA, new CameraArguments(CameraArguments.ARG_CAMERA_APP));

But after capturing the image, the user has to click the back button inorder to navigate to the next screen. Is there any option to close the player automatically, after capturing the image.

回答1:

Check this post. The idea is to use EventInjector to simulate two Escape button presses while being in the Camera app. Note this requires a permission (PERMISSION_INPUT_SIMULATION) from your app.