摘要: 注意,Camera API在API>=21已经被废弃了,建议使用android.hardware.camera2 API来进行操作。调用Camera API拍照的流程如下:To take pictures with this class, use the following steps:Obtain... 阅读全文
posted @ 2015-03-24 17:38 Alex_the_coder 阅读(3124) 评论(0) 推荐(0) 编辑
摘要: 1、说明,调用系统拍照是需要在有摄像头的设备上才能使用的功能,因此需要声明,可见android在最开始的时候还计划了没有带摄像头的设备。 可以使用PackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA)检测android设备是... 阅读全文
posted @ 2015-03-24 15:08 Alex_the_coder 阅读(1525) 评论(0) 推荐(0) 编辑