org.openintents.hardware
Class SensorSimulatorSettingsActivity
java.lang.Object
Activity
org.openintents.hardware.SensorSimulatorSettingsActivity
public class SensorSimulatorSettingsActivity
- extends Activity
Lets user set connection settings to the SensorSimulator and test them.
The connection is outbound to the SensorSimulator.
- Author:
- Peli
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SensorSimulatorSettingsActivity
public SensorSimulatorSettingsActivity()
onCreateOptionsMenu
public boolean onCreateOptionsMenu(Menu menu)
onPrepareOptionsMenu
public boolean onPrepareOptionsMenu(Menu menu)
onOptionsItemSelected
public boolean onOptionsItemSelected(MenuItem item)
connect
public void connect()
disconnect
public void disconnect()
setButtonState
public void setButtonState()
readAllSensors
public void readAllSensors()
- Reads information about which sensors are supported and what their rates and current rates are.
onSensorChanged
public void onSensorChanged(int sensor,
float[] values)