4

I want to be able to open camera app using adb command in video capture mode:

I am already using following command for it:

adb shell am start -a android.media.action.VIDEO_CAPTURE

but if more than one applications have defined that intent then it shows me "Complete action using box". I want to avoid that box. So i wan to open that intent using one particular apk. How can I can i do it?

Lost
  • 12,007
  • 32
  • 121
  • 193

1 Answers1

3

If you know the packagename and the activity name of what you want to open then you can use the below

adb shell am start -a android.media.action.VIDEO_CAPTURE -n com.packagename/com.packagename.ActivityName
Varun
  • 33,833
  • 4
  • 49
  • 42
  • 1
    Thanks that worked:) `adb shell am start -a android.media.action.VIDEO_CAPTURE -n com.android.gallery3d/com.android.camera.CameraActivity` – Lost Nov 16 '13 at 02:31
  • 1
    Does this start the default camera on the android device. – Krishna Oza Jan 30 '17 at 11:41