List of usage examples for android.app WallpaperManager COMMAND_SECONDARY_TAP
String COMMAND_SECONDARY_TAP
To view the source code for android.app WallpaperManager COMMAND_SECONDARY_TAP.
Click Source Link
From source file:cc.flydev.launcher.Workspace.java
protected void onWallpaperTap(MotionEvent ev) { final int[] position = mTempCell; getLocationOnScreen(position);//from ww w . jav a2 s . com int pointerIndex = ev.getActionIndex(); position[0] += (int) ev.getX(pointerIndex); position[1] += (int) ev.getY(pointerIndex); mWallpaperManager.sendWallpaperCommand(getWindowToken(), ev.getAction() == MotionEvent.ACTION_UP ? WallpaperManager.COMMAND_TAP : WallpaperManager.COMMAND_SECONDARY_TAP, position[0], position[1], 0, null); }