If you think the Android project ImageScanner listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
package com.scanner.utils;
//fromwww.java2s.comimport android.util.Log;
publicclass L {
/** if it is essential to print bug message.
I can initial this value in the launch activity*/publicstaticboolean isDebug = true;
//A good convention is to declare a TAG constant in your class:
//subsequent calls to the log methods.
publicstaticvoid i(String TAG,String msg){
if(isDebug){
Log.i(TAG, msg);
}
}
publicstaticvoid d(String TAG,String msg){
if(isDebug){
Log.d(TAG, msg);
}
}
publicstaticvoid e(String TAG,String msg){
if(isDebug){
Log.i(TAG, msg);
}
}
publicstaticvoid v(String TAG,String msg){
if(isDebug){
Log.i(TAG, msg);
}
}
publicstaticvoid e(String TAG,String msg,Throwable tr){
if(isDebug)
Log.e(TAG, msg, tr);
}
}