Skip to content

Instantly share code, notes, and snippets.

@masarugen
Created July 11, 2012 07:00
Show Gist options
  • Save masarugen/3088540 to your computer and use it in GitHub Desktop.
Save masarugen/3088540 to your computer and use it in GitHub Desktop.
Intent intent = new Intent(RingtoneManager.ACTION_RINGTONE_PICKER);
intent.putExtra(RingtoneManager.EXTRA_RINGTONE_TITLE, "タイトル");
//intent.putExtra(RingtoneManager.EXTRA_RINGTONE_SHOW_SILENT, false); // サイレントは見せない
intent.putExtra(RingtoneManager.EXTRA_RINGTONE_TYPE, RingtoneManager.TYPE_ALARM); // アラーム音
intent.putExtra(RingtoneManager.EXTRA_RINGTONE_SHOW_DEFAULT, false);// デフォルトは表示しない
if (mUri != null) {
intent.putExtra(RingtoneManager.EXTRA_RINGTONE_EXISTING_URI, mUri); // 選択済みを選択する
}
startActivityForResult(intent, RINGTONE_PICKER);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment