Skip to content

Instantly share code, notes, and snippets.

@danoz73
Last active Dec 14, 2015
Embed
What would you like to do?
private void scanMedia(File file) {
Uri uri = Uri.fromFile(file);
Intent scanFileIntent = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, uri);
sendBroadcast(scanFileIntent);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment