0

I am trying to launch the Open Camera Android app to take a picture without user interaction for meter reading logging purposes. Plenty of examples on the web to do this using Android intents with user interaction (i.e. they have to press a button) but none I can find how to do this without. Could modify the Open Camera source to do what I want but that seems like overkill if I could just use an existing application and launch it from mine.

VinceJS
  • 1,254
  • 3
  • 18
  • 38

1 Answers1

0

Plenty of examples on the web to do this using Android intents with user interaction (i.e. they have to press a button) but none I can find how to do this without.

That is because there is no option for that.

Could modify the Open Camera source to do what I want but that seems like overkill if I could just use an existing application and launch it from mine.

Or you could use an existing camera library (CameraX, FotoApparat, CameraKit-Android, etc.) and take the picture directly from your app.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491