# Save int for Android program

**URL:** <https://discourse.processing.org/t/save-int-for-android-program/12092>\
**Category:** Processing for Android\
**Created:** [June 16, 2019, 10:16am UTC](https://discourse.processing.org/t/save-int-for-android-program/12092 "2019-06-16T10:16:26Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)\
**Post date:** [June 16, 2019, 7:05pm UTC](https://discourse.processing.org/t/save-int-for-android-program/12092/8 "2019-06-16T19:05:36Z")

</div>

Here is a link where `onPause` is described in case you want to know more about [this](https://github.com/processing/processing-android/wiki/Lifecycle-of-a-Processing-sketch).

I did a quick search in the forum:

> [Search results for 'onPause' - Processing Foundation](https://discourse.processing.org/search?q=onPause)

And I recommend this: [super.onSaveInstanceState does not exist - #13 by akenaton](https://discourse.processing.org/t/super-onsaveinstancestate-does-not-exist/3251/13) to start.

You can add the following to your sketch:

```java
// @@@@@@@@@@@@
@Override 
  public void onPause() {
  super.onPause();
}

```

Also, this [link](https://stackoverflow.com/questions/8640821/how-to-save-application-state-on-android) gives a lead to what you could do next. For now, you can use the file approach. You whould be able to use functions `saveStrings()` and `loadStrings()` for this purpose. More [here](https://processing.org/reference/).

Kf

---

_[View the full topic](https://discourse.processing.org/t/save-int-for-android-program/12092)._
