tags:

views:

148

answers:

1

i used com.android.camera.NEW_PICTURE to check whether an image is captured or not.

(receiver android:name="NewPhotoReceiver")

    (intent-filter)

            (action android:name="com.android.camera.NEW_PICTURE"/)

            (data android:mimeType="image/*"/)

    (/intent-filter)

(/receiver) but com.android.camera.NEW_PICTURE is not discussed any where in android developers site.

A: 

From the source of the Camera app:

sendBroadcast(new Intent("com.android.camera.NEW_PICTURE", mLastContentUri));

So the data property of the intent contains the image URI. You can get the physical path by the methods discussed in this question.

If you want to take a picture from your application, refer to this question.

molnarm