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 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.