A. Using the OpenIntents Sensor Simulator

The OpenIntents Sensor Simulator is a tool that can be used with the Android emulator to help with testing applications. It allows simulation of GPS coordinates, compass directions, orientation, pressure, acceleration, and other factors. It runs as a stand-alone Java application but requires some programming to interact with a project.

Setting Up the Sensor Simulator

To get started, first download the OpenIntents Sensor Simulator from http://code.google.com/p/openintents/downloads/list?q=sensorsimulator. Once the file is downloaded (this appendix uses the file sensorsimulator-2.0-rc1.zip), uncompress it and run the sensorsimulator.jar file from the bin directory.

Figure A.1 shows what the Sensor Simulator ...

Get The Android™ Developer’s Cookbook: Building Applications with the Android SDK, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.