I'm working on an app in which I need to implement a download mechanism for multiple items in the same time, In order to achieve maximum efficiency I want to implement it as an AIDL service
However I have one thing I struggle to understand -
since I can only pass primitives to the service and I need to pass an interface can I pass the interface object in a static method method WITHOUT declaring it on the process?
This way I can populate the object on run-time with an actual object.
The reason I am trying to do this is since it is already half implemented with LOCAL listeners in the service that handle different events (Error, Cancel etc..) however after the application get a bind for the service it can pass different URLs to be downloaded and so I need it to listen for different events in order to react to different events (this in a way the listening screens pass themself as an interface on a static method which I do not declare on)