Code example for RingtonePreference

Methods: setEnabled

0
                    Toast.makeText(AlarmSettings.this, "闹钟已关闭", Toast.LENGTH_SHORT).show(); 
                } 
                 
            } else if (PREF_SOUND_RECORD_SETTINGS_KEY.equals(key)) { 
            	if (mSoundRecordSettingsPref.isChecked()) { 
            		mRingSettingPref.setEnabled(false); 
            		mRingSettingsAllPref.setSummary("吼一声"); 
            		showNoticeDialog(); 
            		mHandler.post(new Runnable(){ 
                        public void run(){onContentChanged(); 
                    }}); 
            	} else { 
            		mRingSettingPref.setEnabled(true); 
            		mRingSettingsAllPref.setSummary("系统铃声"); 
            		mHandler.post(new Runnable(){ 
                        public void run(){onContentChanged(); 
                    }}); 
            	} 
            }  
//            else if (PREF_PLAY_RECORD_SETTINGS_KEY.equals(key)) { 
//            	startRecordRing();