1

Is it possible to write code which not only invokes the default camera application in android but also captures the image (automatically, not with user pressing the capture button).

With the help of photobasics tutorial, I want to access built-in camera from my application, but how can I also automatically capture the image once the app opens?

I know this can be done via camera api, but is there anyway to trigger the capture function of mobile's camera app?

balaji koduri
  • 1,321
  • 9
  • 25
SaadH
  • 1,158
  • 2
  • 23
  • 38

1 Answers1

0

Yes you can do it using Camera Api.

Camera API in Android

API

No need to do any UI for capturing then Image just call the camera api using service or any background thread or as you want.

Mohammad Rababah
  • 1,730
  • 4
  • 17
  • 32