Reputation: 149
I've looked high and low, and no luck yet. I am doing some more camera automation testing on android, and I need a shell way to switch between camera and video camcorder. Opening the camera itself is pretty straightforward: adb shell am start -n com.android.gallery3d/com.android.camera.CameraLauncher
But once I am in the camera, switching to video (in JB ) is only possible via the floating icon. Does someone know a way to either open the video camera straight from ADB, or if not possible, switch from video to stills and vice versa? Thanks in advance NoamM
Upvotes: 1
Views: 4519
Reputation: 40397
adb shell 'am start -a android.media.action.VIDEO_CAPTURE'
Upvotes: 5