Code example for Vibrator

0
import android.widget.Toast; 
 
public class PlatLogoActivity extends Activity {
    Toast mToast;
    ImageView mContent;
    Vibrator mZzz = new Vibrator();
    int mCount;
    final Handler mHandler = new Handler();
 
    Runnable mSuperLongPress = new Runnable() {
        public void run() { 
            mCount++; 
            mZzz.vibrate(50 * mCount); 
            final float scale = 1f + 0.25f * mCount * mCount; 
            mContent.setScaleX(scale); 
            mContent.setScaleY(scale); 
 
            if (mCount <= 3) { 
                mHandler.postDelayed(mSuperLongPress, ViewConfiguration.getLongPressTimeout()); 
            } else { 
                try {