Responding to Gestures

To do all this magic, you need to become very friendly with the Gesture class in the Android SDK. Before you work with it in your code, let’s play around with gestures in a sample program created by the Android development team. You can access this app within the simulator: it’s called GestureBuilder. Before you do that, though, you have to make some changes to the simulator:

  1. GestureBuilder writes files to a tablet’s SD card. If your simulator doesn’t have this, you can add it easily. Choose Window images Android SDK and AVD Manager.
  2. Click the tablet device, and click the Edit button at left on the screen. A dialog box pops up ...

Get Beginning Android Tablet Games Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.