FileDocCategorySizeDatePackage
DefaultRingtonePreference.javaAPI DocAndroid 1.5 API2099Wed May 06 22:42:48 BST 2009com.android.settings

DefaultRingtonePreference

public class DefaultRingtonePreference extends android.preference.RingtonePreference

Fields Summary
private static final String
TAG
Constructors Summary
public DefaultRingtonePreference(android.content.Context context, android.util.AttributeSet attrs)

    
         
        super(context, attrs);
    
Methods Summary
protected voidonPrepareRingtonePickerIntent(android.content.Intent ringtonePickerIntent)

        super.onPrepareRingtonePickerIntent(ringtonePickerIntent);
        
        /*
         * Since this preference is for choosing the default ringtone, it
         * doesn't make sense to show a 'Default' item.
         */
        ringtonePickerIntent.putExtra(RingtoneManager.EXTRA_RINGTONE_SHOW_DEFAULT, false);
        
        /*
         * Similarly, 'Silent' shouldn't be shown here. 
         */
        ringtonePickerIntent.putExtra(RingtoneManager.EXTRA_RINGTONE_SHOW_SILENT, false);
    
protected android.net.UrionRestoreRingtone()

        return RingtoneManager.getActualDefaultRingtoneUri(getContext(), getRingtoneType());
    
protected voidonSaveRingtone(android.net.Uri ringtoneUri)

        RingtoneManager.setActualDefaultRingtoneUri(getContext(), getRingtoneType(), ringtoneUri);