public void start ( ) { if ( hasVibratePermission ( mContext ) ) { mVibrator = ( Vibrator ) mContext . getSystemService ( Service . VIBRATOR_SERVICE ) ; } // Setup a listener for changes in haptic feedback settings mIsGloballyEnabled = checkGlobalSetting ( mContext ) ; Uri uri = Settings . System . getUriFor ( Settings . System . HAPTIC_FEEDBACK_ENABLED ) ; mContext . getContentResolver ( ) . registerContentObserver ( uri , false , mContentObserver ) ; }
Call to setup the controller .