Fixing Java to match callback

This commit is contained in:
Joe Bowser 2010-08-04 12:43:17 -07:00
parent 32b68f568b
commit b18657cf72

View File

@ -72,7 +72,7 @@ public class AccelListener implements SensorEventListener{
float y = event.values[1]; float y = event.values[1];
float z = event.values[2]; float z = event.values[2];
//mAppView.loadUrl("javascript:gotAccel(" + x + ", " + y + "," + z + " )"); //mAppView.loadUrl("javascript:gotAccel(" + x + ", " + y + "," + z + " )");
mAppView.loadUrl("javascript:navigator.accelerometer.gotAccel(" + mKey + "," + x + "," + y + "," + z + ")"); mAppView.loadUrl("javascript:navigator.accelerometer.gotCurrentAcceleration(" + mKey + "," + x + "," + y + "," + z + ")");
} }
} }