Java android.media RingtoneManager fields, constructors, methods, implement or subclass

Example usage for Java android.media RingtoneManager fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.media RingtoneManager.

The text is from its open source code.

Field

intTYPE_RINGTONE
Type that refers to sounds that are used for the phone ringer.
intTYPE_NOTIFICATION
Type that refers to sounds that are used for notifications.
intTYPE_ALARM
Type that refers to sounds that are used for the alarm.
intTYPE_ALL
All types of sounds.
StringACTION_RINGTONE_PICKER
Activity Action: Shows a ringtone picker.
StringEXTRA_RINGTONE_SHOW_DEFAULT
Given to the ringtone picker as a boolean.
StringEXTRA_RINGTONE_SHOW_SILENT
Given to the ringtone picker as a boolean.
StringEXTRA_RINGTONE_INCLUDE_DRM
Given to the ringtone picker as a boolean.
StringEXTRA_RINGTONE_EXISTING_URI
Given to the ringtone picker as a Uri .
StringEXTRA_RINGTONE_DEFAULT_URI
Given to the ringtone picker as a Uri .
StringEXTRA_RINGTONE_TYPE
Given to the ringtone picker as an int.
StringEXTRA_RINGTONE_TITLE
Given to the ringtone picker as a CharSequence .
StringEXTRA_RINGTONE_PICKED_URI
Returned from the ringtone picker as a Uri .
intID_COLUMN_INDEX
The column index (in the cursor returned by #getCursor() for the row ID.
intTITLE_COLUMN_INDEX
The column index (in the cursor returned by #getCursor() for the title.
intURI_COLUMN_INDEX
The column index (in the cursor returned by #getCursor() for the media provider's URI.

Constructor

RingtoneManager(Activity activity)
Constructs a RingtoneManager.
RingtoneManager(Context context)
Constructs a RingtoneManager.

Method

UrigetActualDefaultRingtoneUri(Context context, int type)
Gets the current default sound's Uri .
CursorgetCursor()
Returns a Cursor of all the ringtones available.
UrigetDefaultUri(int type)
Returns the Uri for the default ringtone of a particular type.
RingtonegetRingtone(int position)
Gets a Ringtone for the ringtone at the given position in the Cursor .
RingtonegetRingtone(final Context context, Uri ringtoneUri)
Returns a Ringtone for a given sound URI.
UrigetRingtoneUri(int position)
Gets a Uri for the ringtone at the given position in the Cursor .
booleanisDefault(Uri ringtoneUri)
Returns whether the given Uri is one of the default ringtones.
voidsetActualDefaultRingtoneUri(Context context, int type, Uri ringtoneUri)
Sets the Uri of the default sound for a given sound type.
voidsetType(int type)
Sets which type(s) of ringtones will be listed by this.