Android 调用前置摄像头的方法

Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
intent.putExtra("android.intent.extras.CAMERA_FACING", 1);
startActivityForResult(intent, TAKE_PHOTO);

但是发现个问题:使用前置摄像头获取的图片,加载到imageview上后却左右颠倒了。

解决办法:Bitmap镜像

猜你喜欢

转载自blog.csdn.net/songzi1228/article/details/83574510