where is android.camera.NEW_PICTURE defined?

前端 未结 5 1747
-上瘾入骨i
-上瘾入骨i 2020-12-10 19:57

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

(receiver android:name=\"NewPhotoReceiver\")
    (intent-fil         


        
5条回答
  •  南笙
    南笙 (楼主)
    2020-12-10 20:16

    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.

提交回复
热议问题