How to test my IBinder
object that Service
return on onBind
?
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
It's according to the remote interface that you use between your context and the service (in remote call scenario). For example you can do like this:
The ITestServiceCall is the interface that you define in an AIDL file (ITestServiceCall.aidl).
But before this can work you have to make sure your service returns the Stub of your interface correctly on onBind().
I hope this can help.