I'm using following code snippet to set wallpaper. In all version lower than Android 8 (Oreo) it shows a picker to choose lock screen or home screen or both etc. But in Android 8 it directly sets the wallpaper at Home screen without any confirmation. Is anything updated in Oreo or it is issue with the code?
Uri sendUri2 = Uri.fromFile(externalFile);
Intent intent1 = new Intent(Intent.ACTION_ATTACH_DATA);
intent1.setDataAndType(sendUri2,type);
intent1.putExtra("mimeType",type);
intent1.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
startActivityForResult(Intent.createChooser(intent1, "Set As"), 200);
esa es mi solucion