"an ugly solution would be a backgroundthread doing my solution would still work. If the "android:configChanges="keyboard|keyboardHidden" makes my solution not work, you could instead measure screen height/width-ratio to detect rotation. I think it would work, but its not pretty. Perhaps someone can come up with a better solution"
I can't do that since the ratio keeps its value:
android:screenOrientation = "portrait"
android:configChanges="keyboard|keyboardHidden"
So when the screen rotates so does the center of coordinates but maybe i didn't understand your ideea
Another lead would be to use this code in the activity class together with the changes above
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
global_variable++;
}
So i now know when the screen rotates but i don't know from witch side to witch..
I could ask the user to tell me if he sees the text rotated or not and then each time the global variable increments i know if i have to rotate the text or not..
But i must do this without feedback from the user
Any suggestions?