Closing the default camera in Blackberry programatically after taking a picture

↘锁芯ラ 提交于 2019-12-11 07:19:18

问题


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.



来源:https://stackoverflow.com/questions/5949292/closing-the-default-camera-in-blackberry-programatically-after-taking-a-picture

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!