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:
<
Alternatively, you can start the camera in 2 other ways
adb shell "am start -a android.media.action.IMAGE_CAPTURE"
adb shell "am start -a android.media.action.VIDEO_CAPTURE"
Other information
adb shell "input keyevent KEYCODE_FOCUS"
adb shell "input keyevent KEYCODE_CAMERA"
Other notes
f the keycode string e.g KEYCODE_CAMERA, does not work, lookup the constant value from the API description. Example: KEYCODE_CAMERA
KEYCODE_CAMERA: Added in API level 1
Constant Value: 27 (0x0000001b)