黑莓摄像头应用程序 [英] blackberry camera Application

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

问题描述

我使用,然后例如,实现摄像头应用程序附带了黑莓的Eclipse插件名为CameraDemo问题是,当屏幕失去焦点它的它显示了这样的结果并没有显示摄像头视图istead

I am implementing camera application using then example comes with blackberry plugin for eclipse named "CameraDemo" the problem is that when the screen loses focus It does not display the camera view istead of it shows like this

结果
有没有人遇到这样的问题什么解决办法吗?


has anybody faced such problem whats the solution?

推荐答案

的拍摄照片(采用这种方式,播放器 VideoControl.getSnapshot( ))的所有机型BB不工作不错。我甚至会说,它的工作原理很好只能在狭窄的一套BB模型。所以,如果你要使用你的应用程序在广泛BB车型,那么这是不正确的方式去。

This way of taking picture (using the Player and VideoControl.getSnapshot()) does not work nice on all BB models. I'd even say it works nice only on a narrow set of BB models. So if you are going to use your app on a wide range of BB models, then this is not the right way to go.

而不是拍照使用内置的摄像头应用程序。 <一href=\"http://stackoverflow.com/questions/3739651/how-can-i-invoke-the-blackberry-camera-and-save-the-picture-that-is-taken-in-my-c/3753450#3753450\">Here是如何做到这一点的起点。

Instead to take a picture use a built-in Camera app. Here is a starting point on how to do that.

基本上你调用内置的摄像头应用程序,并监听文件系统的变化来检测新映像文件的路径。然后,你需要关闭内置摄像头的应用程序以某种方式 - 这是可以做到的,它通过模拟两个Esc键按钮presses

Basically you invoke the built-in Camera app and listen for the file-system changes to detect a new image file path. Then you need to close the built-in Camera app somehow - it's possible to do that by simulating two 'Esc' button presses.

是的,这听起来有点哈克/过于复杂,但这是BB engeneers如何安排,对于我们。 :)顺便说一句,如果与Android相比,不同的设备manufactorers违反共同规则和实施相机应用在其特定的方式,所以你不能写code一次涵盖所有机器人这其实并没有那么糟糕。

Yes, this sounds a bit hacky/over-complicated, but that's how BB engeneers arranged that for us. :) BTW, this is actually not so bad if compare with Android where different device manufactorers violate the common rules and implement the Camera app in their specific way so you are not able to write the code once covering all Androids.

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

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