Книги автора: Beginning Android
Книга: Beginning Android
Request for Service
Request for Service
Once your service interface object is ready (IWeather.Stub.asInterface(binder)
), you can start calling methods on it as you need to. In fact, if you disabled some widgets awaiting the connection, now is a fine time to re-enable them.
However, you will want to trap two exceptions. One is DeadObjectException
— if this is raised, your service connection terminated unexpectedly. In this case, you should unwind your use of the service, perhaps by calling onServiceDisconnected()
manually, as shown previously. The other is RemoteException
, which is a more general-purpose exception indicating a cross-process communications problem. Again, you should probably cease your use of the service.
Оглавление статьи/книги
Похожие страницы
- Timestamp request
- Information request
- Running Services Through xinetd
- How DNS Provides Name Service Information to Users
- Comparing WCF with ASMX Web Services
- Forced writes - палка о двух концах
- Forced Writes
- Chapter 15. Graphical User Interfaces for Iptables
- What NAT is used for and basic terms and expressions
- ICMP Echo Request
- SCTP Generic header format
- System tools used for debugging