Search code examples
androidandroid-intentadb

What is adb command to open camera in Video capture using one particular app?


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?


Solution

  • 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