2

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.

saa
  • 1,538
  • 2
  • 17
  • 35

1 Answers1

0

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.

Community
  • 1
  • 1
Sebastiano
  • 12,289
  • 6
  • 47
  • 80