且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Keep应用在后台运行

更新时间:2021-11-04 22:52:56

您可以使用的服务 API对于这一点,特别是 startForeground(INT,通知)函数调用。还有,我已经联系到API文档中提供的例子。

You can use the Service API for this, specifically the startForeground(int, Notification) function call. There is an example provided in the API documentation that I have linked to.