Example usage for Java android.media RingtoneManager fields, constructors, methods, implement or subclass
The text is from its open source code.
int | TYPE_RINGTONE Type that refers to sounds that are used for the phone ringer. |
int | TYPE_NOTIFICATION Type that refers to sounds that are used for notifications. |
int | TYPE_ALARM Type that refers to sounds that are used for the alarm. |
int | TYPE_ALL All types of sounds. |
String | ACTION_RINGTONE_PICKER Activity Action: Shows a ringtone picker. |
String | EXTRA_RINGTONE_SHOW_DEFAULT Given to the ringtone picker as a boolean. |
String | EXTRA_RINGTONE_SHOW_SILENT Given to the ringtone picker as a boolean. |
String | EXTRA_RINGTONE_INCLUDE_DRM Given to the ringtone picker as a boolean. |
String | EXTRA_RINGTONE_EXISTING_URI Given to the ringtone picker as a Uri . |
String | EXTRA_RINGTONE_DEFAULT_URI Given to the ringtone picker as a Uri . |
String | EXTRA_RINGTONE_TYPE Given to the ringtone picker as an int. |
String | EXTRA_RINGTONE_TITLE Given to the ringtone picker as a CharSequence . |
String | EXTRA_RINGTONE_PICKED_URI Returned from the ringtone picker as a Uri . |
int | ID_COLUMN_INDEX The column index (in the cursor returned by #getCursor() for the row ID. |
int | TITLE_COLUMN_INDEX The column index (in the cursor returned by #getCursor() for the title. |
int | URI_COLUMN_INDEX The column index (in the cursor returned by #getCursor() for the media provider's URI. |
RingtoneManager(Activity activity) Constructs a RingtoneManager. | |
RingtoneManager(Context context) Constructs a RingtoneManager. |
Uri | getActualDefaultRingtoneUri(Context context, int type) Gets the current default sound's Uri . |
Cursor | getCursor() Returns a Cursor of all the ringtones available. |
Uri | getDefaultUri(int type) Returns the Uri for the default ringtone of a particular type. |
Ringtone | getRingtone(int position) Gets a Ringtone for the ringtone at the given position in the Cursor . |
Ringtone | getRingtone(final Context context, Uri ringtoneUri) Returns a Ringtone for a given sound URI. |
Uri | getRingtoneUri(int position) Gets a Uri for the ringtone at the given position in the Cursor . |
boolean | isDefault(Uri ringtoneUri) Returns whether the given Uri is one of the default ringtones. |
void | setActualDefaultRingtoneUri(Context context, int type, Uri ringtoneUri) Sets the Uri of the default sound for a given sound type. |
void | setType(int type) Sets which type(s) of ringtones will be listed by this. |