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.
Asked
Active
Viewed 63 times
1 Answers
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
-
Can any of those existing camera libraries take a picture without user interaction? – VinceJS Jul 14 '20 at 16:00
-
@VinceJS: Yes, simply because you would be the one providing the user interaction, if there was one. – CommonsWare Jul 14 '20 at 16:08