Android Question How to use Intent to Close Camera App so I can take Pictures

Roger Garstang

Well-Known Member
Licensed User
Longtime User
Ok...I have a Galaxy Camera and the goofy thing autostarts into the Camera app. I have a service listening to TCP for commands (Also loads at boot) and I need to access the camera, but it is already open. It appears to opened directly from the firmware as it loads before anything Android is available yet. I've tried using the same intents in the manifest with hopes of it allowing me to select my app as default or anything, but that didn't work. My Service is running behind it though once booted up...although much later after android finishes and around the time WiFi turns on.

Now, when I click the Home button that is built in to the camera I see in the logs a com.sec.android.app.camera.ACTION_STOP_CAMERA. I've tried a few things with it like sending/broadcasting it as a whole and setting action to be "ACTION_STOP_CAMERA" and the intent to be the first part, but no luck. Anyone else have any luck using it or advice on the proper format to send it?
 
Top