I am working on an android application that uses phonegap/cordova. This app uses a javascript to fetch content from the server from time to time and issues a systemtray alert if there is new content. The problem I was facing was that the app would eventually just quit when android was short on memory or whatsoever.
因此,我对我的发言做了补充(任何人说,服务会解决问题)。
<service android:name="UpdateService" />
更糟的是,只有提供这种服务,就没有(明显)。 因此,我如何使我的服务成为保持运作的主要应用?
ADDITION: I also managed to start the service in my main application