I know how to realize your feature. But I am not sure this is good or not. you can start an alarm manager to check the service is running or nor at some minutes. If the service is being killed, you just start it again.
2010/12/19 TreKing <treking...@gmail.com> > On Sat, Dec 18, 2010 at 4:54 PM, Hans-Erik <erikswed...@gmail.com> wrote: > >> AsyncTask out the door, Services welcome in. >> > > Realize that a Service can just as easily be killed. > > >> > There's really no such thing as "keeping a connection alive". Your >> process >> > can and will be killed at some point, if not by the system then >> explicitly >> > by the user. >> >> In my Desire phone i see both fring and Google mssagin always running >> Read some about a service being "Sticky" >> > > AFAIK, "sticky" means the system will try to restart the Service if it was > killed before it was done. This does not guarantee that you will always be > running. > > >> I read elsewhere that a service can be started with a Brodcastcmmand >> >> http://stackoverflow.com/questions/4468006/can-i-start-a-service-without-activity-or-receiver >> >> cant wrap my head around the code implementation here. >> after reading many questions here and elsewhere about this. >> I think the method is: >> - an apk file which contains a Service an activity and a >> BroadcastReceiver Class. >> - action.BOOT_COMPLETED will start only my Service, not the Activity. >> The user can from Main Launcher start Activity for "in app settings" >> and I Bind >> to Service and Unbind when done >> > > Yes, you can start a service in response to system events, however, I > stress again that your Service can and will be killed eventually. You cannot > count on it "living forever". > > >> I look at your TreKing app. Im impressed nice work >> > > Thanks :-) > > >> Can I ask how did you tap into CTA bus tracker system GPS signal for all >> there Busses location? >> > > They have a whole API for > developers<http://www.transitchicago.com/developers/bustracker.aspx> > . > > > ------------------------------------------------------------------------------------------------- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en