Yes - you could make it a service (in the init sense of the term), and put it in an "on restart" clause in the servicemanager section of init.rc. For an example see mediaserver.
On Mar 2, 5:07 pm, Tim Mensch <tim.men...@gmail.com> wrote: > I'm working with a client who needs to have a persistent server run on > a device running Android. The device will be wall-powered, so battery > life is not an issue. > > The server is written in portable C/C++ code. I'm well on the way to > getting it all to build on Android, but I'm worried about what I've > heard about Android killing off processes it "doesn't know about." > > If I start this process in init.rc, is that all I need to do to > guarantee it will start on boot and stick around indefinitely? > > Thanks, > > Tim Mensch -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting