If u are making a simple thread in the acitivity to do some backgroundtask, it's life is only for the life of activity and it is bound to a prticular context, but the woking of a servce is not like this, since we can bind to this service at any time from the same process or from any other proess with different process(different process id).
Thanks &Regards On Tue, Aug 31, 2010 at 9:24 PM, cool.manish <[email protected]> wrote: > Service class is used to run something in background but for that we > have to create a thread in the onStart function of the subclass of the > Service. I think same thing can be done by creating a thread in > Activity class then what is the use of the Service component? > > -- > You received this message because you are subscribed to the Google Groups > "Android Discuss" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<android-discuss%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/android-discuss?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Android Discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/android-discuss?hl=en.
