Code example for ConsoleMessage

Methods: lineNumbermessagesourceId

0
        } 
        */ 
        } 
 
        public boolean onConsoleMessage(ConsoleMessage cm) {
            String msg = cm.message() + " -- From line "+ cm.lineNumber() + " of "+ cm.sourceId();
            Log.d("tofelword", msg);
            Toast.makeText(getBaseContext(), msg, Toast.LENGTH_LONG).show();
 
            return true; 
        } 
 
        @Override 
        public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {
            Toast.makeText(MainActivity.this, "Oh no! " + description, Toast.LENGTH_SHORT).show();
        } 
    } 
 
    @Override 
    public boolean onCreateOptionsMenu(Menu menu){