Red-Folder / bgs-core

Core code for the Cordova Background Service
Other
236 stars 105 forks source link

spawning a process #19

Closed krzysztofantczak closed 9 years ago

krzysztofantczak commented 9 years ago

Hi,

Is it possible to use bgs-core to spawn long running external process (native arm app bundled in cordova generated package) and keep it running forever (or until stopped by the user) using ie. doWork? I don't need to exchange any data between background service and native app, since it contains http rpc service which i'd like to utilise using cordova, so i'd like to just be sure that it's running in the background and it boots with system. Android stuff is really new to me, so if You could point me out some resources in this subject...

Kind regards

Red-Folder commented 9 years ago

What is the long running process? Is it Java logic or is it an application of some form?

If Java logic, then yes you can start it off in the doWork(). If long running code, then I'd suggest looking at running under a separate thread.

If an application, then have a read of the Android Application lifecycle.

Red-Folder commented 9 years ago

No activity on issue. Closing