Pregunta

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.

¿Fue útil?

Solución

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top