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 e(String msg) { if (SHOW) { Log.e(TAG, msg); } }
From source file:Main.java
public static String parseUnicodeString(String source) { try {//w w w . j a va 2 s . c o m source = URLDecoder.decode(source, "UTF-8"); } catch (UnsupportedEncodingException e) { Log.e(TAG, e.getMessage()); e.printStackTrace(); } return source; }
From source file:Main.java
public static String getFunctionFromReturnUrl(String url) { Log.e(TAG, "getFunctionFromReturnUrl url=>" + url); String temp = url.replace(PANDO_RETURN_DATA, EMPTY_STR); String[] fuctionAndData = temp.split(SPLIT_MARK); if (fuctionAndData != null && fuctionAndData.length >= 1) { return fuctionAndData[0]; }/*from w w w.j av a2 s . c o m*/ return null; }
From source file:Main.java
public static String encodeUnicodeString(String source) { try {/*from w w w.ja va2s.c om*/ source = URLEncoder.encode(source, "UTF-8"); } catch (UnsupportedEncodingException e) { Log.e(TAG, e.getMessage()); e.printStackTrace(); } return source; }
From source file:Main.java
public static void e(String Tag, String message) { if (!isLog) { return; } Log.e(Tag, message); }
From source file:Main.java
public static JSONObject parseJSON(String jsonString) { JSONObject jsonObject = null;/*from w w w .j ava 2 s . co m*/ try { jsonObject = new JSONObject(jsonString); } catch (JSONException e) { Log.e(TAG, "Failed to parse JSON string " + jsonString + ": " + e); } return jsonObject; }
From source file:Main.java
public static boolean jump(Context context, String s) { Intent intent = new Intent("android.intent.action.VIEW", Uri.parse(s)); boolean flag; if (!isIntentAvailable(context, intent)) { Log.e("MicroMsg.Util", (new StringBuilder("jump to url failed, ")).append(s).toString()); flag = false;/* ww w . java 2s .c o m*/ } else { context.startActivity(intent); flag = true; } return flag; }
From source file:Main.java
public static void e(String tag, String msg) { if (isShow) { Log.e(tag, msg); } }
From source file:Main.java
public static String makeItUrl(String str) {//TODO move if (!str.startsWith(HTTP)) { if (str.contains(HTTP)) { str = str.substring(str.indexOf(HTTP)).replace("\"", "").replace("\\", "").replace("]", "");//1202 0304 } else {/*from w w w. jav a2 s .c om*/ Log.e("jackUtil", "url illegal:" + str); str = ""; } } return str; }
From source file:Main.java
private static int linkProgram(int program) { int[] status = new int[1]; GLES20.glLinkProgram(program);// ww w .java 2s . c om GLES20.glGetProgramiv(program, GLES20.GL_LINK_STATUS, status, 0); if (status[0] != GLES20.GL_TRUE) { Log.e(TAG, "Error linking program: " + GLES20.glGetProgramInfoLog(program)); return 0; } return 1; }