Chris Pollett > Students >
Parikh

    ( Print View )

    [Bio]

    [Project Blog]

    [CS297 Proposal]

    [Deliverable 1]

    [Deliverable 2]

    [Deliverable 3]

    [Deliverable 4]

    [CS297Report-PDF]

    [CS298 Proposal]

    [CS298Report-PDF]

    [CS298presentation-PPT]

                          

























Deliverable 2

Goal: The objective here was to Integrate the Sensor Simulator with Android Emulator. After integration the simulator values will be reflected on the emulator screen.

Download Deliverable 2

Description


The zip file contains the source code for testing the simulator integration with emulator and the files described below:
1) Test.java - It is the class from which we connect to Sensor Simulator.
2) AccelerometerReader.java - This file contains the functionality and methods for accessing the sensors as defined in android.hardware.Sensors class
3) R.java - It is the auto generated file. It is an index into all the resources defined in the file.

Procedure for connecting the sensor simulator to android application

1)  Download the openintents-binary-0.1.4 from OpenIntents project
2)  Start the Java standalone application from the directory tools/SensorSimulator.jar
3)  Install OpenIntents.apk and OpenGLSensors.apk on the emulator.
4)  Launch OpenIntents on the emulator and select Sensor Simulator from the menu. Follow the instructions shown in each of the UI screens.

Screenshot of integration of Sensor Simulator with emulator

Fig 1. Figure below shows the simulator with ip address and port number
simulator with ip address and port number
Fig 2. Figure below shows the UI screens related to connection of simulator with emulator
UI screens related to connection of simulator
Fig 3. Figure below shows the Simulator values generated by moving the simulator phone
values generated by moving the simulator phone
Fig 4. Simulator values as seen on the emulator after connection
emulator after connection