문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top