How to launch front camera with intent?

后端 未结 6 1712
[愿得一人]
[愿得一人] 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:24

    Have you tried watching adb logcat while switching to the front camera in your native camera application? If it is indeed another activity, then it will show up as such there and you can simply copy the intent to your application. If it does not show up, you are out of luck, I guess.

提交回复
热议问题