How can I run Android camera application from adb shell?

前端 未结 5 1648
孤城傲影
孤城傲影 2020-12-23 22:41

How can I run android camera program from adb shell?
I know that I should use am but I do not know what command should I exactly enter

I used this:

<         


        
5条回答
  •  醉梦人生
    2020-12-23 23:27

    I'd like to add to Keo Malope's answer that while IMAGE_CAPTURE and VIDEO_CAPTURE are likely to work on most devices, I have encountered cases where they don't work as expected. In this case, we have two more constants that we can try:

    • STILL_IMAGE_CAMERA
      • adb shell am start -a android.media.action.STILL_IMAGE_CAMERA
    • VIDEO_CAMERA
      • adb shell am start -a android.media.action.VIDEO_CAMERA

提交回复
热议问题