What I'm trying to do is to close the Activity
if the user is changing the orientation in the middle of the use.
I have added to this activity the following line in the manifest -
android:configChanges="orientation"
and I have also overridden onConfigurationChanged
:
@Override
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
finish();
}
But it seems that it doesn't do the trick, so what am I doing wrong here?