开发者

Service without Activity. how?

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..


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".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜