Closing the default camera in Blackberry programat

2019-08-14 05:55发布

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条回答
疯言疯语
2楼-- · 2019-08-14 06:38

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.

查看更多
登录 后发表回答