i have called webview in android now i want to preserve state when orientation changes , i had called android:configChanges for activity still not working see below
<activity
android:name=".MainActivity"
android:configChanges="orientation|keyboardHidden|keyboard"/>
@Override
public void onConfigurationChanged(Configuration newConfig){
super.onConfigurationChanged(newConfig);
}
what have i to do to make it work
Try This, It works very fine for me. Add "screenSize" in configChanges
android:configChanges="orientation|keyboardHidden|screenSize"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.