摘要:
Forcing an app chooser When there is more than one app that responds to your implicit intent, the user can select which app to use and make that app t 阅读全文
摘要:
Building an Intent An Intent object carries information that the Android system uses to determine which component to start (such as the exact componen 阅读全文
摘要:
Intent Types There are two types of intents: Explicit intents specify the component to start by name (the fully-qualified class name). You'll typicall 阅读全文
摘要:
Intents An Intent is a messaging object you can use to request an action from another app component. Although intents facilitate communication between 阅读全文
摘要:
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 阅读全文
摘要:
Managing the Lifecycle of a Service The lifecycle of a service is much simpler than that of an activity. However, it's even more important that you pa 阅读全文
摘要:
Bound Services 1.In this document The Basics Creating a Bound Service Extending the Binder class Using a Messenger Binding to a Service Additional not 阅读全文
摘要:
1.Creating a Started Service A started service is one that another component starts by calling startService(), resulting in a call to the service's on 阅读全文
摘要:
Services 简介和分类 A Service is an application component that can perform long-running operations in the background and does not provide a user interface. 阅读全文