How to system out for Android(xperia Z) -


i'm using xperia z debug device , logcat debug. in logcat when exception throw out catch cannot debug java. example in java can find information

exception in thread "main" java.lang.nullpointerexception @ myserver.main(myserver.java:260)

i think if can use system out in java can information in android.

please send me advises

thanks!

just try debug android errors:

import android.util.log; log.d(string tag, string msg); 

where parameters (taken docs):

  1. tag used identify source of log message. identifies class or activity log call occurs.
  2. msg message logged.

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -