user1861240
user1861240

Reputation: 143

INTENT_ACTION_STILL_IMAGE_CAMERA - PictureCallback or intercept events take a picture

I induce camera using INTENT_ACTION_STILL_IMAGE_CAMERA, I have the opportunity to do any number of photos until I press the back.

My question is, can I capture single images as well as in custom camera in PictureCallback? I dont see capabilities to hook the camera to PictureCallback or can I write a service that will intercept the events that take a picture?

I know that if i use flag ACTION_IMAGE_CAPTURE, I can take image in activityResult from intent data, but it is important to take a few photo.

Currently I take image using cursor form ContentResolver after I press back button.

Cursor imageCursor =  activity.getContentResolver().query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,imageColumns, where, null, imageOrderBy); 

but I have problem with it on Sony Erricson arc S with api 2.3.4, query doesn't work, application still work, any exception, but result of query is empty.

Upvotes: 1

Views: 905

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006674

The Camera.PictureCallback class is for use with the Camera class, not for use with INTENT_ACTION_STILL_IMAGE_CAMERA.

Upvotes: 1

Related Questions