skip to Main Content

method does not override method from superclass. how can i fix this error.
im making and android native app for my website.and my website contain a button which amy app defining as unknown url error so i add the code (shared in screenshote) but after that is showing a error and its not working, im doing making this app without any pre knowledge of java or android app development please help me out to solve this issue . everything is working fine instead of whatsapp url

method does not override method from superclass. how can i fix this error.
im making and android native app for my website.

2

Answers


  1. MainActivity and this superclass not has shouldOverrideUrlLoading method

    Login or Signup to reply.
  2. With this code, you’re saying that there is a method shouldOverrideUrlLoading in your superclass.
    Superclass is the class you extend. Example:

    public class MainActivity extends ExampleClass { }

    To override a method, there needs to be a

    protected void shouldOverrideUrlLoading(){ }

    method in ExampleClass.

    If you didn’t override any class, remove @Override.
    If you did and must extend a class, you can’t go further without inheritance knowledge.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search