I’m tracking locations using the google api, if I power off the screen in portrait mode and power back on, my map is still there and my locations were still being recorded while the screen was powered off (the desired effect). If I power off in landscape and power on in portrait, onDestroy has been called (not desired). The MapActivity is trying to recycle the map object and just throws a fatal. How should I handle this?
Share
can try using this!!!
android:configChanges=”orientation|keyboardHidden”