Listen to photo taken event
问题 Just want to register to video/photo taken events. Hopefully, but not a must, the event will be triggered when the operation have finished, so I won't process half photos or half taken videos. Already tried: fileObserver = new FileObserver(dcimDir, FileObserver.ALL_EVENTS) I see the events when traversing using a file manager app but not when a picture is taken nor when copying. Ideas? 回答1: Found a way by registering to all sub directories of dcim (except the ones that start with a period):