Code example for Vibrator

Methods: cancel, vibrate

0
		mVibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);
	} 
 
	public boolean onPreferenceChange(Preference preference, Object newValue) {
		if (preference == mVibrateDurationPref) {
			mVibrator.cancel();
			mVibrator.vibrate(Long.valueOf((Integer) newValue));
		} 
		return false; 
	} 
 
	public boolean onPreferenceClick(Preference pref) {
		if (pref == mInsertListPref) {
			Intent intent = new Intent(this, SequenceListActivity.class);
			startActivity(intent);
			return true; 
		} 
		return false; 
	} 
}