开发者

Service without Activity. how?

开发者 https://www.devze.com 2023-01-09 16:25 出处:网络
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 se

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

精彩评论

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