摘要: Android Interface Definition Language (AIDL) 1.In this document Defining an AIDL Interface Create the .aidl file Implement the interface Expose the in 阅读全文
posted @ 2016-09-23 22:02 f9q 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 1.绑定服务的生命期 官方原文如下: Managing the Lifecycle of a Bound Service When a service is unbound from all clients, the Android system destroys it (unless it was 阅读全文
posted @ 2016-09-23 17:09 f9q 阅读(1269) 评论(0) 推荐(0) 编辑
摘要: Binding to a Service Application components (clients) can bind to a service by calling bindService(). The Android system then calls the service's onBi 阅读全文
posted @ 2016-09-23 17:06 f9q 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2016-09-23 16:49 f9q 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2016-09-23 15:09 f9q 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2016-09-23 14:29 f9q 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 1.Sending Notifications to the User (发送通知) Once running, a service can notify the user of events using Toast Notifications or Status Bar Notifications 阅读全文
posted @ 2016-09-23 12:03 f9q 阅读(505) 评论(0) 推荐(0) 编辑