List of usage examples for android.media RingtoneManager EXTRA_RINGTONE_TITLE
String EXTRA_RINGTONE_TITLE
To view the source code for android.media RingtoneManager EXTRA_RINGTONE_TITLE.
Click Source Link
From source file:nkarasch.repeatingreminder.gui.AlertView.java
@OnClick(R.id.text_tone) public void toneOnClick() { Intent intent = new Intent(RingtoneManager.ACTION_RINGTONE_PICKER); intent.putExtra(RingtoneManager.EXTRA_RINGTONE_TYPE, RingtoneManager.TYPE_NOTIFICATION); intent.putExtra(RingtoneManager.EXTRA_RINGTONE_TITLE, "Select Tone"); intent.putExtra(RingtoneManager.EXTRA_RINGTONE_EXISTING_URI, (Uri) null); mContext.getIntent().putExtra("array_index", mPosition); mContext.startActivityForResult(intent, 5); stopAlert();//from w w w.j av a 2 s . c om }
From source file:com.android.messaging.ui.UIIntentsImpl.java
@Override public Intent getRingtonePickerIntent(final String title, final Uri existingUri, final Uri defaultUri, final int toneType) { return new Intent(RingtoneManager.ACTION_RINGTONE_PICKER) .putExtra(RingtoneManager.EXTRA_RINGTONE_TYPE, toneType) .putExtra(RingtoneManager.EXTRA_RINGTONE_TITLE, title) .putExtra(RingtoneManager.EXTRA_RINGTONE_EXISTING_URI, existingUri) .putExtra(RingtoneManager.EXTRA_RINGTONE_DEFAULT_URI, defaultUri); }
From source file:com.android.mms.ui.MessageUtils.java
public static void selectRingtone(Context context, int requestCode) { if (context instanceof Activity) { Intent intent = new Intent(RingtoneManager.ACTION_RINGTONE_PICKER); intent.putExtra(RingtoneManager.EXTRA_RINGTONE_SHOW_DEFAULT, false); intent.putExtra(RingtoneManager.EXTRA_RINGTONE_SHOW_SILENT, false); intent.putExtra(RingtoneManager.EXTRA_RINGTONE_INCLUDE_DRM, false); intent.putExtra(RingtoneManager.EXTRA_RINGTONE_SHOW_MORE_RINGTONES, false); intent.putExtra(RingtoneManager.EXTRA_RINGTONE_TITLE, context.getString(R.string.select_audio)); if (FeatureOption.MTK_DRM_APP) { intent.putExtra(OmaDrmStore.DrmIntentExtra.EXTRA_DRM_LEVEL, OmaDrmStore.DrmIntentExtra.LEVEL_SD); }/*from w w w . j a v a 2 s . c o m*/ ((Activity) context).startActivityForResult(intent, requestCode); } }