摘要:
Android Interface Definition Language (AIDL) 1.In this document Defining an AIDL Interface Create the .aidl file Implement the interface Expose the in 阅读全文
摘要:
1.绑定服务的生命期 官方原文如下: Managing the Lifecycle of a Bound Service When a service is unbound from all clients, the Android system destroys it (unless it was 阅读全文
摘要:
Binding to a Service Application components (clients) can bind to a service by calling bindService(). The Android system then calls the service's onBi 阅读全文
摘要:
Compared to AIDL When you need to perform IPC, using a Messenger for your interface is simpler than implementing it with AIDL, because Messenger queue 阅读全文
摘要:
Extending the Binder class If your service is used only by the local application and does not need to work across processes, then you can implement yo 阅读全文
摘要:
1.Bound Services A bound service is the server in a client-server interface. A bound service allows components (such as activities) to bind to the ser 阅读全文
摘要:
1.Sending Notifications to the User (发送通知) Once running, a service can notify the user of events using Toast Notifications or Status Bar Notifications 阅读全文