关闭黑莓默认的摄像头拍照后编程 [英] Closing the default camera in Blackberry programatically after taking a picture

查看:100
本文介绍了关闭黑莓默认的摄像头拍照后编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序,即时通讯使用默认的黑莓玩家的相机捕捉到使用此图像。 - Invoke.invokeApplication(Invoke.APP_TYPE_CAMERA,新CameraArguments(CameraArguments.ARG_CAMERA_APP));

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.

推荐答案

勾选此<一个href=\"http://supportforums.blackberry.com/t5/Java-Development/Unable-to-close-camera-using-EventInjector-for-touch-screen/m-p/785247#M143879\"相对=nofollow>帖子。我们的想法是使用 EventInjector 来模拟两个退出按钮presses而在相机应用之中。注意:这需要从你的应用程序许可(PERMISSION_INPUT_SIMULATION)。

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.

这篇关于关闭黑莓默认的摄像头拍照后编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆