Pause an Android App with Phonegap

落花浮王杯 提交于 2019-11-29 01:53:15
Nick

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!