Skip to content Skip to sidebar Skip to footer

How Can I Update The Android Gallery After A Photo?

For the university i've to develop an application on android with the face detections. For this i've to save various photo on my gallery. The problem is that after saving the photo

Solution 1:

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)));

Post a Comment for "How Can I Update The Android Gallery After A Photo?"