0

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?

Community
  • 1
  • 1
Kostya Khuta
  • 1,846
  • 6
  • 26
  • 48

1 Answers1

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