Pause an Android App with Phonegap Pause an Android App with Phonegap android android

Pause an Android App with Phonegap


The simple answer appears to be: no.

However, for anyone else that comes down this path, its not impossible. It's just that there isn't a feature of Phonegap to do it for you.

The Android equivalent of "sleeping an app" is actually just opening another intent. Specifically, opening the "Home" intent would sleep the running app and bring you back to the home screen. But as far as I can tell from asking around and scoping the docs, Phonegap doesn't have a direct way of opening intents.

What you (supposedly) can do is one of two things:

Mind you, as of right now I've decided to not go any further with this, so I make no promises about either of those means, having not attempted them myself.

I invite anyone else who decides to pursue this further to update their experience here.