android - Needs to code when rotate the device? -
I'm getting the error when I rotate the device (it was HTC with Verizon):
app (Process Com.Mempony.Android) has stopped the application unexpectedly. Please try again.
So, I think I need the code for this issue in order words, when the device moves from landscape to portable or portable to rotate in landscape, Need to catch.
Is that correct?
How to do it?
By closing Android activities by default Is given and restarts on a configuration change. The easiest way to do this is to add an app manifest. It will tell Android that you will handle the listed config changes themselves. For example
& lt; Activity Android: name = ". YourActivity" android: label = "YourActivity" Android: configChanges = "orientation-keyboardHidden" />
In your manifest it means that the activity does not restart any orientation changes or if the user has removed one keyboard.
Comments
Post a Comment