Hi, does anyone know how to update an xml intent to be compatible with API 29
Previous I would use the Intent.ACTION_MEDIA_SCANNER_SCAN_FILE but that was deprecated in favor of using MediaStore.
Basically how to convert this:
Intent scanIntent = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE); File file = new File(Filename); Uri contentUri = Uri.fromFile(file); scanIntent.setData(contentUri); sendBroadcast(scanIntent);
to something that can add/update your asset to gallery.
Any help is appreciated.