Skip to content Skip to sidebar Skip to footer

App Stop Working

First I am trying this way. And I am stuck then I ask question But no one gives any answer. Then I try another way suggested by @sayed.jalil in this link. But my app stop working.

Solution 1:

Caused by: java.lang.NoSuchMethodException: 
<init> [class android.content.Context, interface android.util.AttributeSet]
01-19 10:43:19.400: E/AndroidRuntime(1482):
     at java.lang.Class.getConstructorOrMethod(Class.java:472)

You are not providing all of the constructors required for a custom view.
Specifically, add this constructor. Read the documentation and tutorials for how to use the attribute set:

public JustifiedTextView(Context context, AttributeSet attrs){   
    super(context, attrs);
    this.setWebChromeClient(new WebChromeClient() {
    });
}

Post a Comment for "App Stop Working"