views:

58

answers:

1

I am new to android.. just started writing service using activity.. i want to know if there are any other ways to trigger a service without the use of activity? like when a new message arrives, the service need to start running..

if so, how?

Thank you..

+1  A: 

In the abstract, what you want is a manifest-registered BroadcastReceiver that then starts the service.

That being said, there is no support in the Android SDK for events fitting the description of "when a new message arrives".

CommonsWare