Refer to the example in this Bound Service documentation: https://developer.android.com/guide/components/bound-services.html
Binder is a class implementing the interface IBinder. However, in the example, I cannot understand why we use IBinder mBinder
instead of Binder mBinder
? Why make it more complicated with IBinder? And why do we need LocalBinder class for just to return the instance of LocalService?