break;
}
}
void getCurrentAcceleration() {
Accelerometer.getCurrentAcceleration(new Callback() {
@Override
public void onSuccess(Acceleration accel) {
text.setHTML("Current Acceleration:<br/>X: " + accel.getX() + "<br/>Y: " + accel.getY() + "<br/>Z: " + accel.getZ());
}
@Override