# Run app in background

**URL:** <https://discourse.processing.org/t/run-app-in-background/7070>\
**Category:** Processing for Android\
**Created:** [January 1, 2019, 1:38pm UTC](https://discourse.processing.org/t/run-app-in-background/7070 "2019-01-01T13:38:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![manhnt](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@manhnt](https://discourse.processing.org/u/manhnt)\
**Post date:** [January 1, 2019, 1:38pm UTC](https://discourse.processing.org/t/run-app-in-background/7070/1 "2019-01-01T13:38:38Z")

</div>

I want to make app run in background. How can I do that? --\>That means whenever I press the Android multi-tasking button to ACTIVE, app will continue its next action 😓

---

<div class="post-metadata">

**Author:** ![akenaton](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@akenaton](https://discourse.processing.org/u/akenaton)\
**Post date:** [January 1, 2019, 4:24pm UTC](https://discourse.processing.org/t/run-app-in-background/7070/2 "2019-01-01T16:24:13Z")

</div>

@manhnt ===  
Difficult to answer precisely without seeing some code; what is the “previous action”? what is the “next one” - How your app goes running in the background?? - Yet, globally you have (probably) to save some values in onPause() then retrieve these values or other in onResume().
