I\'m trying to save pictures in a subfolder on Android. Here\'s a bit of my code:
File path = Environment.getExternalStoragePublicDirectory(Environment.DIREC
The only thing that worked for me was this:
Intent mediaScannerIntent = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE);
Uri fileContentUri = Uri.fromFile(path);
mediaScannerIntent.setData(fileContentUri);
this.sendBroadcast(mediaScannerIntent);
Credit to https://stackoverflow.com/a/12821924/1964666