Created
August 3, 2020 10:15
-
-
Save Younes-Charfaoui/78970b31dbc2c8acf046e6d03db0ec50 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MainActivity : AppCompatActivity(), SensorEventListener { | |
override fun onAccuracyChanged(sensor: Sensor?, accuracy: Int) { | |
Log.d("SENSORS", "onAccuracyChanged: $accuracy") | |
} | |
override fun onSensorChanged(event: SensorEvent) { | |
Log.d("SENSORS", "onSensorChanged: The values are ${Arrays.toString(event.values)}") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment