How to prevent a WebView to get recreated on orientation change

142
April 14, 2019, at 09:20 AM

I have a really heavy loading WebView in a Fragment.

The WebView takes about 2-4 seconds to load the url.

Every time the orientation is changed the WebView reloads the Url and it is a really bad user experience.

Is there a way to leave the url/WevView alive when the orientation changes?

Thanks

I forgot to add i cant add orientation to the manifest because of how the app is built.

 android:configChanges="orientation|screenSize">

So answers i found don't help me in my case.

Rent Charter Buses Company
READ ALSO
OAuth2.0 for nopCommerce

OAuth2.0 for nopCommerce

I am trying to use nopCommerce API for one of our mobile appWe have successfully done with website

130
How to Query the Same Data within a Table but the Output Row Positions are Different

How to Query the Same Data within a Table but the Output Row Positions are Different

I have a table inside my database just like the sample below and i would like to query the same data but in the Column 2 the positions of the data would be 1 row greater than the previous data

105
Group-concat problems, the result is wrong [duplicate]

Group-concat problems, the result is wrong [duplicate]

This question already has an answer here:

101
How to optimize this inner join query to decrease query time

How to optimize this inner join query to decrease query time

I have a table that now has about 1m rowsThe following query need about 5 seconds to complete

126