Android Webview - Prevent Reload When Go Back to the App

后端 未结 1 1288
南笙
南笙 2021-02-10 00:29

How to prevent reload on webview when your back to the app? When tapping home key and then back to the app, the webview was reloaded. I dont want this behaviour, I want users to

相关标签:
1条回答
  • 2021-02-10 01:12

    Test this by adding android:launchMode="singleInstance" to your <activity> element in your androidmanifest.xml.

    0 讨论(0)
提交回复
热议问题