Frage

I am writing a media player application. Implementing SDCard refresh option programatically.The following code is not working in KITKAT version to get newly added/renamed/deleted audio, video files.

sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, 
        Uri.parse("file://" + Environment.getExternalStorageDirectory()))); 

Is there any solution for this problem.

War es hilfreich?

Lösung

It seems like this is a bug with KitKat, as reported by Justin. The issue has been posted in the official Issue Tracker.

For a more complete overview of the problem, please refer to my answer here.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top