Created
July 11, 2012 07:00
-
-
Save masarugen/3088540 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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