2011年7月9日

摘要: 从Android 2.3 Gingerbread开始,原生支持前置摄像头。下面我们看看如何在程序里来调用前置的摄像头。 第一种方式是采用MediaStore,调用系统原生的相机。 Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); intent.putExtra("camerasensortype", 2); // 调用前置摄像头 intent.putExtra("autofocus", true); // 自动对焦 intent.putExtra("fullScree... 阅读全文
posted @ 2011-07-09 23:24 android开发实例 阅读(6437) 评论(0) 推荐(0) 编辑

导航