Domanda

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.

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top