Eason Kazuya Yim
Eason Kazuya Yim

Reputation: 77

Take photo automatically

In my app I want to take photo automatically every several seconds, so I tried to startActivity using the google IMAGE_CAPTURE intent and inject some key events. But I cant find the way to intent keyevent to activity not written by me. Anyone can suggest any other method?

Or else I have to write my own photo taking activity(it would cause a lot of time...)

Upvotes: 1

Views: 648

Answers (1)

CommonsWare
CommonsWare

Reputation: 1007554

Anyone can suggest any other method?

Use the Camera class and take the picture yourself.

Or else I have to write my own photo taking activity(it would cause a lot of time...)

Not for most developers.

Upvotes: 3

Related Questions