Hi All,
Can someone help me on how to use the SensorSimulator @
http://code.google.com/p/openintents/wiki/SensorSimulator
I went through the instructions at the above wiki page, regarding
adding/using the SensorEventListeners and other Sensor related classes from
this package, but when I tried this :

   - Replace the following code in onCreate():

   mSensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);

   - by this code

   mSensorManager = SensorManagerSimulator.getSystemService(this,
SENSOR_SERVICE);



I'm getting error messages saying:
    Type mismatch: cannot convert from SensorManagerSimulator to
SensorManager

Also for the registerListener() and unreigsterListener(), I'm getting this
error:
     The method unregisterListener(SensorListener) in the type SensorManager
is not applicable for the arguments (ShakeActivity)   // My Activity is
named ShakeActivity

Can someone help me how to fix these errors and use the SensorSimulator to
simulates movements/shakes etc.

Thanks in advance.

--KK

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to