public void onSensorChanged(SensorEvent event) { if (event.values[0] > 0.6 && event.values[1] > 1.6) { Toast.makeText(getBaseContext(), "Movement is NOT detected.",Toast.LENGTH_SHORT).show(); startActivity(new Intent(TestingSensor.this, Timer.class)); } else return; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)