git-annex/doc/todo/Use_MediaScannerConnection_on_Android.mdwn

8 lines
647 B
Text
Raw Normal View History

2013-07-02 13:57:15 +00:00
Currently if photos or videos are copied into the Camera/DCIM directory on an Android device, or deleted the Gallery doesn't notice the changes.
It is necessary to call MediaScannerConnection - http://developer.android.com/reference/android/media/MediaScannerConnection.html - to notify the system of the change.
2013-07-02 13:58:59 +00:00
More info, and some sample Java code: http://stackoverflow.com/questions/13270789/how-to-run-media-scanner-in-android
2013-07-02 13:57:15 +00:00
It'd be awesome if the assistant did this on files it has changed. Possibly just under Camera/DCIM, but perhaps it should be configurable. MediaScannerConnection is also used to notify and index new music files.