Let’s say I have serviceImpl class A & an AIDL interface B. Class A extended B.Stub & overridden all xyz methods that presents in B.
Created new Instance of class A & passed inside Bundle putBinder() api & received it in a Fragment via Activity through getBinder. Now I have IBinder object of class A inside the Fragment onCreate().
The moment I try to call the AIDL B apis from fragment via the IBinder instance, it throws AbstractMethodError(Means method implementation is not present).
Could anyone help me to understand, is this the right way to call the AIDL apis? If not how to bind to class A from Fragment ?
Sudhansu Pradhan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.