Where/how would I do that? Is that code for the LWP or for the launcher?
EDIT: Ah, that'd go int he launcher, and it has these parameters:
setWallpaperOffsetSteps (float xStep, float yStep)
becomes: LWP.RunMethod("setWallpaperOffsetSteps", Array As Float(1/(NumberOfPages-1), 0))
yStep will always be zero since almost nothing does vertical scrolling
xStep is 1/(numberofscreens-1)
That'd handle the snapping, but how do I send the virtualWidth and X?
Ah, these:
public void suggestDesiredDimensions (int minimumWidth, int minimumHeight)
becomes: LWP.RunMethod("suggestDesiredDimensions", Array As Int(CurrentWidth, ScaleHeight))
public void setWallpaperOffsets (IBinder windowToken, float xOffset, float yOffset)
Also, no idea how to call the last one (the windowToken)