first of all I wanted to don't make full reloading of map after screen rotation and i read this and add android:configChanges="orientation|screenSize"
to my Manifest file, but i want to change zoom after screen rotation, how can i make it?
Asked
Active
Viewed 172 times
0

Community
- 1
- 1

Kostya Khuta
- 1,846
- 6
- 26
- 48
1 Answers
2
You need to add also this method to your activity:
@Override
public void onConfigurationChanged(Configuration newConfig) {
// TODO Auto-generated method stub
super.onConfigurationChanged(newConfig);
if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) {
} else {
}
}
And handle there what you want :D

AlexBalo
- 1,258
- 1
- 11
- 16
-
But what can I do if I use map in fragment? – Kostya Khuta Jul 23 '14 at 08:19
-
Change the zoom of the map in this method – AlexBalo Jul 23 '14 at 08:22