My current project is created for API Level 4 and I use custom implementation of the interface Window.Callback there. When I'm running the project on higher API Levels I'm getting the error: java.lang.AbstractMethodError: abstract method not implemented. That's because two extra methods added to this interface since API Level 5. So any android interface can be modified in future API Levels and any application that uses modified interface will crash!? How to solve this problem? I have two solutions, which is better?:
- Use Proxy (this is not a problem but I don't want to complicate my code)
- Built project under the latest API Level and indicate min-sdk=4 (but if new API Level is created I will have to rebuild my project again?!)