android中mvc架构问题
阿神
阿神 2017-04-17 15:17:58
0
2
704

目前项目分层为:app,core,api,model。分层设计参考:链接。作者说把逻辑处理的都放到core层里。那BroadCastReceiver和Service应该放到什么地方呢?这两个都有逻辑处理,如果放到core层里,不利于解绑和绑定。

阿神
阿神

闭关修行中......

reply all(2)
小葫芦

Put BroadCastReceiver wherever it is needed. If people want it, you won’t give it to them?
Service must be the core.
Why do you need to unbind and bind to Service?
Service runs its own. Other modules can send messages to it and listen to its broadcasts. What to do to bind and unbind?

左手右手慢动作

Create a package called service. . Put it inside. That’s it.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template