List of usage examples for android.util Log e
public static int e(String tag, String msg)
From source file:Main.java
public static void clearLog() { try {/* ww w . j a v a 2s . co m*/ Runtime.getRuntime().exec(new String[] { "logcat", "-c" }); } catch (IOException e) { Log.e(TAG, e.toString()); } }
From source file:Main.java
public static void loge(String msg) { if (isShow) { Log.e("LM", msg); } }
From source file:Main.java
private static byte[] createByteArrayFromBitmap(Bitmap bitmap) { Log.e(LOG_TAG, "creating asset"); final ByteArrayOutputStream byteStream = new ByteArrayOutputStream(); bitmap.compress(Bitmap.CompressFormat.PNG, 100, byteStream); Log.e(LOG_TAG, "length : " + Integer.toString(byteStream.toByteArray().length)); return byteStream.toByteArray(); }
From source file:Main.java
public static void e(Object o) { try {/* w w w . j a v a 2s .c om*/ Log.e("MGX", o.toString()); } catch (Exception e) { Log.e("MGX", "ERROR LOGGING"); } }
From source file:Main.java
public static void e(Object object, String msg) { if (isDebug) { Log.e(object.getClass().getSimpleName(), msg); } }
From source file:Main.java
@SuppressWarnings("unchecked") public static final <E extends View> E getView(View parent, int id) { try {/*from ww w . jav a2s. c o m*/ return (E) parent.findViewById(id); } catch (ClassCastException ex) { Log.e("ImagPageUtil", "Could not cast View to concrete class \n" + ex.getMessage()); throw ex; } }
From source file:Main.java
public static void onError(String tag, String message) { Log.e(tag, message); }
From source file:Main.java
/** * Logs the data to the android Log.e . * /* w w w. j a v a 2 s.c o m*/ * @param tag * @param msg */ public static void e(String tag, String... msg) { if (show) { Log.e(tag, toString(msg)); } }
From source file:Main.java
public static void checkGlError(String op) { int error;//from www. j ava 2 s . co m while ((error = GLES20.glGetError()) != GLES20.GL_NO_ERROR) { Log.e(TAG, op + ": glError " + GLU.gluErrorString(error)); throw new RuntimeException(op + ": glError " + GLU.gluErrorString(error)); } }
From source file:Main.java
public static void closeCursor(Cursor c) { try {// w w w .j a va 2 s.c om if (c != null && c.isClosed() != true) { c.close(); c = null; } } catch (Exception e) { Log.e("xs", "SingleBook onDestroy:" + e.toString()); } }