O'Reilly logo

The Android™ Developer’s Cookbook: Building Applications with the Android SDK, Second Edition by Nelson To, Ronan Schwarz, James Steele, Phil Dutson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required