I have few problems. I am updating my SD card using:
sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://" + Environment.getExternalStorageDirectory())));
and I created a ProgressDialog with a counter that appears at the beginning ("at the beginning" - I mean after the sendBroadcast method), and after a successful update I would like to reject it, but I had no idea how to verify that MediaScanner finished work. I tried using BroadcastReciver and sendStickyOrderedBroadcast(...) , but it seemed like the wrong idea ...
I cannot use MediaScannerConnection and OnScanCompletedListener() , because I do not have direct paths to files (in some situations it does not exist). Does anyone know how to solve my problem? I'm out of ideas
Stigi source share