How to launch front camera with intent?

后端 未结 6 1708
[愿得一人]
[愿得一人] 2020-11-27 18:47

I\'m using an intent to open the camera with the native application:

    Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);

    Uri photoUri = Uri         


        
6条回答
  •  野性不改
    2020-11-27 19:19

        pictureIntent.putExtra("android.intent.extra.USE_FRONT_CAMERA", true);
        pictureIntent.putExtra("android.intent.extras.LENS_FACING_FRONT", 1);
        pictureIntent.putExtra("android.intent.extras.CAMERA_FACING", 1);
    
    working on intex 
    

提交回复
热议问题