try using broadcast receiver than using an application.

once u receive the boot complete signal, spawn ur service to handle ur
logic.




On Tue, Jan 12, 2010 at 4:39 PM, Ganeshkumar <ganesh.andr...@gmail.com>wrote:

> Hello  Friend,
>
> i am trying to use service to run application in background but not
> getting it successfully executed. And also not getting whats the
> problem is... so, i am very much confused....
>
>
>
> Regards,
>
>
> Ganeshkumar
>
> On Jan 7, 6:33 am, zongan liu <liuzongan1...@gmail.com> wrote:
> > I think use android services
> > two kinds of services
> > 1 Application, once closed, services also shut down
> > 2 Application, once closed, services also run
> >
> > 2010/1/7 Matt Kanninen <mathias...@gmail.com>
> >
> >
> >
> > > So most applications are android Activites, long running processes
> > > outside of a given activity should be Android Services.  The other
> > > major "kind" of Android "thingy" are content providers.
> >
> > > On Jan 6, 3:33 am, Ganeshkumar <ganesh.andr...@gmail.com> wrote:
> > > > Hello Friends,
> >
> > > > I want to develope an application in which if SIM card is changed
> then
> > > > the application should sent SMS to a predefined number from the new
> > > > SIM. User should not know that SMS are being send from his/ her
> > > > mobile. For this application needs to run in background. How can I
> > > > achieve it?
> >
> > > > Thank you in advance
> >
> > > --
> > > 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>
> <android-developers%2bunsubs­cr...@googlegroups.com>
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en- Hide quoted
> text -
> >
> > - Show quoted text -
>
> --
> 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
>



-- 
Cheers,
Sunit

Marie von 
Ebner-Eschenbach<http://www.brainyquote.com/quotes/authors/m/marie_von_ebnereschenbac.html>
- "Even a stopped clock is right twice a day."
-- 
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

Reply via email to