org.wiigee.device
Class AndroidDevice

java.lang.Object
  extended by org.wiigee.device.Device
      extended by org.wiigee.device.AndroidDevice
All Implemented Interfaces:
android.hardware.SensorEventListener

public class AndroidDevice
extends org.wiigee.device.Device
implements android.hardware.SensorEventListener

Device representation for Android Mobile Phones, like HTC Magic. Since the API for Sensor values changed within the last Android SDKs this should only compile for Android SDKs >= 1.5.


Field Summary
 
Fields inherited from class org.wiigee.device.Device
accelerationEnabled, accelerationlistener, accfilters, buttonlistener, closegesturebutton, MOTION, processingunit, recognitionbutton, trainbutton
 
Constructor Summary
AndroidDevice()
           
 
Method Summary
 void onAccuracyChanged(android.hardware.Sensor arg0, int arg1)
           
 void onSensorChanged(android.hardware.SensorEvent sevent)
           
 
Methods inherited from class org.wiigee.device.Device
addAccelerationFilter, addAccelerationListener, addButtonListener, addGestureListener, fireAccelerationEvent, fireButtonPressedEvent, fireButtonReleasedEvent, fireMotionStartEvent, fireMotionStopEvent, getCloseGestureButton, getProcessingUnit, getRecognitionButton, getTrainButton, loadGesture, resetAccelerationFilters, saveGesture, setAccelerationEnabled, setCloseGestureButton, setRecognitionButton, setTrainButton
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AndroidDevice

public AndroidDevice()
Method Detail

onSensorChanged

public void onSensorChanged(android.hardware.SensorEvent sevent)
Specified by:
onSensorChanged in interface android.hardware.SensorEventListener

onAccuracyChanged

public void onAccuracyChanged(android.hardware.Sensor arg0,
                              int arg1)
Specified by:
onAccuracyChanged in interface android.hardware.SensorEventListener