# Every time I go to recent tabs WebView gets reloaded!

**URL:** <https://discourse.processing.org/t/every-time-i-go-to-recent-tabs-webview-gets-reloaded/30983>\
**Category:** Processing for Android\
**Created:** [July 1, 2021, 1:21am UTC](https://discourse.processing.org/t/every-time-i-go-to-recent-tabs-webview-gets-reloaded/30983 "2021-07-01T01:21:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Syed\_Daanish](https://avatars.discourse-cdn.com/v4/letter/s/a6a055/32.png) [@Syed\_Daanish](https://discourse.processing.org/u/Syed_Daanish)\
**Post date:** [July 1, 2021, 1:21am UTC](https://discourse.processing.org/t/every-time-i-go-to-recent-tabs-webview-gets-reloaded/30983/1 "2021-07-01T01:21:55Z")

</div>

I don’t know why but every time I go to recent tabs in my phone and come back the `WebView` gets reloaded same happens if I go from landscape to portrait or portrait to landscape mode

---

<div class="post-metadata">

**Author:** ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Post date:** [July 1, 2021, 1:37am UTC](https://discourse.processing.org/t/every-time-i-go-to-recent-tabs-webview-gets-reloaded/30983/2 "2021-07-01T01:37:31Z")

</div>

the android sketch unfortunately does not retain any information, when you open tabs or rotate your device the sketch is stopped and all services associated are also stopped.When you return to the application you are starting a new instance of the sketch, and not returning to your previous one. I’m not sure there is a way to fix this, as processing android mode i think is limited in this way on purpose.

---

<div class="post-metadata">

**Author:** ![Syed\_Daanish](https://avatars.discourse-cdn.com/v4/letter/s/a6a055/32.png) [@Syed\_Daanish](https://discourse.processing.org/u/Syed_Daanish)\
**Post date:** [July 1, 2021, 1:38am UTC](https://discourse.processing.org/t/every-time-i-go-to-recent-tabs-webview-gets-reloaded/30983/3 "2021-07-01T01:38:39Z")

</div>

there should be some work around!!

---

<div class="post-metadata">

**Author:** ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Post date:** [July 1, 2021, 1:49am UTC](https://discourse.processing.org/t/every-time-i-go-to-recent-tabs-webview-gets-reloaded/30983/4 "2021-07-01T01:49:50Z")

</div>

Unfortunately this is out of my expertise, however this has been discussed previously, maybe this can help.

> [@How to keep my application alive in background in processing android (APDE)](https://discourse.processing.org/t/how-to-keep-my-application-alive-in-background-in-processing-android-apde/22126/5):
>
> But I want to make my sensors work in background…

---

<div class="post-metadata">

**Author:** ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Post date:** [July 1, 2021, 1:52am UTC](https://discourse.processing.org/t/every-time-i-go-to-recent-tabs-webview-gets-reloaded/30983/5 "2021-07-01T01:52:56Z")

</div>

also

> <https://stackoverflow.com/questions/8515936/android-activity-life-cycle-what-are-all-these-methods-for>

---

<div class="post-metadata">

**Author:** ![Syed\_Daanish](https://avatars.discourse-cdn.com/v4/letter/s/a6a055/32.png) [@Syed\_Daanish](https://discourse.processing.org/u/Syed_Daanish)\
**Post date:** [July 4, 2021, 2:17pm UTC](https://discourse.processing.org/t/every-time-i-go-to-recent-tabs-webview-gets-reloaded/30983/6 "2021-07-04T14:17:29Z")

</div>

I hope there was no such thing!! 🤦🏼‍♂️ 🤦🏼‍♂️
