FileDocCategorySizeDatePackage
AlarmPreference.javaAPI DocAndroid 1.5 API1661Wed May 06 22:42:42 BST 2009com.android.alarmclock

AlarmPreference

public class AlarmPreference extends android.preference.RingtonePreference

Fields Summary
public android.net.Uri
mAlert
private IRingtoneChangedListener
mRingtoneChangedListener
Constructors Summary
public AlarmPreference(android.content.Context context, android.util.AttributeSet attrs)

        super(context, attrs);
    
Methods Summary
protected android.net.UrionRestoreRingtone()

        return mAlert;
    
protected voidonSaveRingtone(android.net.Uri ringtoneUri)

        if (ringtoneUri != null) {
            mAlert = ringtoneUri;
            if (mRingtoneChangedListener != null) {
                mRingtoneChangedListener.onRingtoneChanged(ringtoneUri);
            }
        }
    
public voidsetRingtoneChangedListener(com.android.alarmclock.AlarmPreference$IRingtoneChangedListener listener)

        mRingtoneChangedListener = listener;