开发者

Do I really have to use an Activity class to launch my Service

Creating an Acti开发者_运维技巧vity with a Service and setting up the bindService. I thought i could make all this run "hidden" like a background Service - silentely this Service (client) would connect to my PC server waiting for incoming. I read the Service class api dock and cant see any description how to do that. Do I really have to use an Activity class to launch my Service. I know i can launch activity classes from the service if I need. Can somebody enplane this before i go nuts?


What is the BroadcastReceiver "actually" doing?

cant wrap my head around the code implementation here. after reading many questions here and elsewhere about this getting fragment of clarification I think the method is: - an apk file which contains a Service an activity and a BroadcastReceiver Class. - action.BOOT_COMPLETED will start only my Service, not the Activity. The user can from Main Launcher start Activity for "in app settings" and I Bind to Service and Unbind when done

Yea will try this tomorrow after work.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜