Android ConsoleMessage - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android ConsoleMessage class.

This code example shows how to use the following methods: lineNumber, message, messageLevel, sourceId
	} 
 
	@Override 
	public boolean onConsoleMessage(ConsoleMessage message)
	{ 
		switch (message.messageLevel()) {
			case DEBUG:
				Log.d(CONSOLE_TAG, message.message() + " (" + message.lineNumber() + ":" + message.sourceId() + ")");
				break; 
			default: 
				Log.i(CONSOLE_TAG, message.message() + " (" + message.lineNumber() + ":"+ message.sourceId() + ")");
				break; 
		} 
		return true; 
	} 
 
	public boolean onJsAlert(WebView view, String url, String message, final android.webkit.JsResult result)
	{ 
		TiUIHelper.doOkDialog("Alert", message, new OnClickListener() {
			public void onClick(DialogInterface dialog, int which) {
Full Snippet Info
9
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: lineNumber, message, messageLevel, sourceId
                    view = convertView;
                } 
 
                TextView headline = (TextView) view.findViewById(android.R.id.text1);
                TextView subText = (TextView) view.findViewById(android.R.id.text2);
                headline.setText(error.sourceId() + ":" + error.lineNumber());
                subText.setText(error.message());
                switch (error.messageLevel()) {
                    case ERROR:
                        subText.setTextColor(Color.RED);
                        break; 
                    case WARNING:
                        // Orange 
                        subText.setTextColor(Color.rgb(255,192,0));
                        break; 
                    case TIP:
                        subText.setTextColor(Color.BLUE);
                        break; 
                    default: 
                        subText.setTextColor(Color.LTGRAY);
Full Snippet Info
7
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: lineNumber, message, sourceId
			activity.setTitle(title);
	} 
 
	@Override 
	public boolean onConsoleMessage(ConsoleMessage consoleMessage) {
		Log.v(TAG, consoleMessage.sourceId() + ':' + consoleMessage.lineNumber() + " " + consoleMessage.message());
		return true; 
	} 
} 
Full Snippet Info
7
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: lineNumber, message, sourceId
 
    private final static String TAG = TomahawkWebChromeClient.class.getName();
 
    @Override 
    public boolean onConsoleMessage(ConsoleMessage cm) {
        Log.d(TAG, cm.message() + " -- From line " + cm.lineNumber() + " of " + cm.sourceId());
        return true; 
    } 
 
    @Override 
    public void onConsoleMessage(String message, int lineNumber, String sourceID) {
        Log.d(TAG,
                "invoked: onConsoleMessage() - " + sourceID + ":" + lineNumber + " - " + message);
        super.onConsoleMessage(message, lineNumber, sourceID);
    } 
} 
Full Snippet Info
7
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE
This code example shows how to use the following methods: lineNumber, message, sourceId
      viewClient_.onReceivedLoginRequest(view_, realm, account,
          args);
    } 
  } 
   
  // DownloadListener proxy methods. 
  @Override 
  public void onDownloadStart(String url, String userAgent,
      String contentDisposition, String mimeType, long contentLength) {
    if (downloadListener_ != null) {
      downloadListener_.onDownloadStart(url, userAgent, contentDisposition,
          mimeType, contentLength);
    } 
  } 
   
  // FindListener proxy methods. 
  @TargetApi(Build.VERSION_CODES.JELLY_BEAN)
  @Override 
  public void onFindResultReceived(int activeMatchOrdinal,
      int numberOfMatches, boolean isDoneCounting) {
Full Snippet Info
7
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE

Related Android ConsoleMessage Questions & Answers:

See Code Examples for Android ConsoleMessage Methods: