本文介绍了Android的摄像头的三星Galaxy i9003的setParameters faild的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在开发Android摄像头应用程序。测试的一些设备,它工作的,但三星Galaxy i9003的setparameters没有工作。
在这里,我该怎么做:
cameraParams.setColorEffect([一些支持作用]);
camera.setPrameters(cameraParams);
[一些支持作用]我得到cameraParams.getSupportedColorEffects()。

I'm developing android camera application. Tested on some devices and it work's, but on samsung galaxy i9003 setparameters didn't work.Here how I do it:cameraParams.setColorEffect([some supported effect]);camera.setPrameters(cameraParams);[some supported effect] I get with cameraParams.getSupportedColorEffects().

我的code是不是我写的那么简单,但最终它做到这一点。

My code is not as simple as I wrote , but in the end it do this.

它适用于多种设备,包括三星Galaxy S I9000(虽然我必须做一些i9000的伎俩,没有在PARAMS已知的bug,当你得到params.flatten PARAMS()有空格的参数)。

It works on many devices including samsung galaxy s i9000 ( though I must do some trick on i9000, there is known bug in params when you get params with params.flatten() there is spaces in parameters).

请一些帮助,这是我第一次写在这里。

Please some help, it's first time I'm writing here.

推荐答案

不同的设备会有不同的拍照能力,所以你应该检查你要设置的参数确实设备支持例如调用getSupportedColorEffects() - 这给你的支持效果还是空的列表,以便您可以检查此尝试设置之前

Different devices will have different camera capabilities so you should check that the parameter that you wish to set is indeed supported by the device e.g. call getSupportedColorEffects() - this gives you a list of supported effects or null so you can check this before you try to set them.

这篇关于Android的摄像头的三星Galaxy i9003的setParameters faild的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-11 22:18