I am trying to display the window selection dialog in android with the default selection instead of “No”, which it is currently, to select the default sound / ringtone.
Here is the code I tried:
Intent intent = new Intent(RingtoneManager.ACTION_RINGTONE_PICKER); intent.putExtra(RingtoneManager.EXTRA_RINGTONE_TYPE, RingtoneManager.TYPE_NOTIFICATION | RingtoneManager.TYPE_RINGTONE); intent.putExtra(RingtoneManager.EXTRA_RINGTONE_SHOW_DEFAULT, true); intent.putExtra(RingtoneManager.EXTRA_RINGTONE_DEFAULT_URI, RingtoneManager .getDefaultUri(RingtoneManager.TYPE_NOTIFICATION)); startActivityForResult(intent, 0);
See screenshot for more details. 
source share