Reputation: 58
i am writing an app that update it contents/records if new video files on the device meets certain criteria. so how to get notify(maybe through broadcast) when new videos files are available on android external storage so that the user can see his records when he opens the app even when the file was deleted. Not just new videos captured with the device camera(intent: android.hardware.NEW_VIDEO), i want to know as soon as when new video files are available(captured, downloaded, received, e.t.c).
Upvotes: 1
Views: 1637
Reputation: 3768
You can use FileObserver for this purpose. It works for files and directories. You will need to implement service for this. Answer here can be helpful.
Upvotes: 1