1
Watching and researching some tutorials on the internet, I came across some code in JAVA on ANDROID, as below:
@Override
protected void onPause() {
sensorManager.unregisterListener(this);
super.onPause();
}
@Override
protected void onPause() {
super.onPause();
sensorManager.unregisterListener(this);
}
The Mainactivity class is basically working with the accelerometer to collect and display the X,Y and Z axes of the device.
My question, what is the difference of being above or below the super.onPause() Sensormanager registration release?
thank you very much for the explanation.
– RDamazio