I want to create my custom activity class which extends Activity,
but adds another abstracts method which inheriters must implement.
Example:
interface MyActivity extends Activity
{
public void myAbstractMethod();
}
The IDE says :"The type Activity cannot be a superinterface of MyActivity; a superinterface must be an interface"
How can I do such thing?
Thank you.
Activity-- it's similar in function -- but since Activity contains implementation, you can't have an interface (which contains no implementation) extend it.