You can force the MediaScanner to add a specific file (or let it know it was deleted or modified)
sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, Uri.fromFile(myNewFile)));
More Related Contents:
- Get/pick an image from Android’s built-in Gallery app programmatically
- Sending an Intent to browser to open specific URL [duplicate]
- Android YouTube app Play Video Intent
- Using intents to pass data between activities
- Image, saved to sdcard, doesn’t appear in Android’s Gallery app
- What is an Intent in Android?
- Android Overriding onBackPressed()
- Changing position of the Dialog on screen android
- Android install apk with Intent.VIEW_ACTION not working with File provider
- How do you to check if a user has rated your app on the Google Play?
- Summary: Take a picture utilizing Camera Intent and display the photo with correct orientation (works on hopefully all devices)
- Gmail 5.0 app fails with “Permission denied for the attachment” when it receives ACTION_SEND intent
- Android Intent.getStringExtra() returns null
- Android E/Parcelīš Class not found when unmarshalling (only on Samsung Tab3)
- How to find Intent source in Android? [duplicate]
- android:select image from gallery then crop that and show in an imageview
- Android – detecting application launch from home or history
- Display Activity From Bottom to Top
- How to stop scrolling in a Gallery Widget?
- Page scroll when soft keyboard popped up
- Intent filter to download attachment from gmail apps on Android
- How to use intent for choosing file browser to select file
- How to perform a fade animation on Activity transition?
- How do I create an android Intent that carries data?
- Can I click a button programmatically for a predefined intent?
- android: Take camera picture without “save” / “delete” confirmation
- Sending SMS via an Intent and know if the SMS has been sent or not
- Launching an intent for file and MIME type?
- What intent-filters must my app cover to appear in chooser when requestion an image from an external app?
- What’s “requestCode” used for on PendingIntent?