I have two activities: MainActivity extends ListActivity and Preferences implements BillingController.IConfiguration.
Now I need to call BillingController.someMethod(this) at MainActivity. Such call can be made only if MainActivity implements BillingController.IConfiguration. But this is already implemented at Preferences class. What can I do to avoid implementing that again?
Make a class that implements
BillingController.IConfigurationand use it inside bothMainActivityandPreferencesto delegate method calls to it.