Android: BroadcastReceiver intent to Detect Camera Photo Taken?

前端 未结 3 1278
感动是毒
感动是毒 2020-11-30 05:01

I\'m working on an Android application which needs to perform an action each time a new image is taken with the phone. I don\'t want to take the image within my application

3条回答
  •  鱼传尺愫
    2020-11-30 05:48

    Right now, I've gotten a BroadcastReceiver implemented that's currently listening for "android.intent.action.CAMERA_BUTTON". However, this doesn't seem to get called when I'm wanting it to.

    That only gets broadcast if the foreground activity does not consume the event.

提交回复
热议问题