Alex Rivera | Logout

How can I run Android camera application from adb shell?

Asked 2011-09-13T12:51:00.690
22

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:

am start -a android.intent.action.MAIN -n com.android.camera 

But it didn't work!

Edit
Report

1 Answer

2
  • Create a CameraActivity class.
  • Implement camera functionality there and add to AndroidManifest.xml file.
  • Then use following command:

    am start -a android.intent.action.MAIN -n [package-name].CameraActivity 
    

I hope this will solve your problem.

answered 2011-09-13T13:40:16.963

Your Answer