• 5

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191


File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

How to remove chromium log in Android Studio (LogCat)

When I open the webview Cordova (app in release mode) The logcat show these logs I/chromium: [INFO: CONSOLE(1)] source http://.....

How to remove these logs into my application "I/chromium: [INFO: CONSOLE(1)], in Android Studio (LogCat)? Thanks

It's possible. Using Console APIs in WebView

Just override WebViewClient for your WebView like this:

val myWebView: WebView = findViewById(R.id.webview)
myWebView.webChromeClient = object : WebChromeClient() {

override fun onConsoleMessage(consoleMessage: ConsoleMessage?): Boolean {
    consoleMessage?.apply {
        Log.d("MyApplication", "${message()} -- From line ${lineNumber()} of ${sourceId()}")
    return true
  • 1
Reply Report
      • 1
    • The important part is to return "true" instead of "super.onConsoleMessage(consoleMessage)" like the default override.