Code example for Vibrator

0
    private static final int SCROLL_LEFT = 0;
    private static final int SCROLL_RIGHT = 1;
 
    private Context mContext;
    private Handler mHandler;
    private final Vibrator mVibrator = new Vibrator();
 
    // temporaries to avoid gc thrash 
    private Rect mRectTemp = new Rect();
    private final int[] mCoordinatesTemp = new int[2];
 
    /** Whether or not we're dragging. */ 
    private boolean mDragging;
 
    /** X coordinate of the down event. */ 
    private float mMotionDownX;
 
    /** Y coordinate of the down event. */ 
    private float mMotionDownY;
    public static  int mLauncherY=0;