when I debug using a Log, however with a message of null string(not space just like "") by coincidence, and the results show nothing even no empty colorful logcat row, that is to say, if I want to execute Log.d(TAG, msg) but the string msg is a null character(msg.equals(""); it show nothing in DDMS , so I have to append some other characters as a mark to guarantee the log row to appear for check. Is there other approach to handle this issue? Appriciate a lot
Usually it's helpful to print something that describes what your String variable is supposed to mean, so why not do something like:
Log.d(TAG, "my message: " + msg);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With