开发者

Restricting Android camera

开发者 https://www.devze.com 2022-12-21 16:44 出处:网络
Avoiding having to create a whole camera app myself, I am calling up: Intent camera = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);

Avoiding having to create a whole camera app myself, I am calling up:

Intent camera = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
this.开发者_运维百科startActivityForResult(camera, PICTURE_RESULT);

However, the camera is very advanced and beautiful :) but not for my purposes. :(

Is there a way to restrict the camera to control size, resolution, disable setup button, flash, face recognition, etc...?


Sorry but you will be unable to change all these features using the Intents system. For this level of control you will have to create you own camera program.

http://developer.android.com/reference/android/hardware/Camera.html

You can change the autofocus and flash however using the uses tag in the manifest.xml

0

精彩评论

暂无评论...
验证码 换一张
取 消