// Show error message public static void displayExceptionMessage(Context pContext, Exception pE) { try { LogUtils.LOGD("TAG", "MSG", pE); MessageUtils.toast(pContext, pE.toString(), true); } catch (Exception e) { LogUtils.LOGD("TAG", "MSG", pE); MessageUtils.toast(pContext, e.toString(), true); } }
// Show error message public static void displayExceptionMessage(Activity pActivity, Exception pE) { try { LogUtils.LOGD("TAG", "MSG", pE); MessageUtils um = new MessageUtils(pActivity, "Exception Message", pE.toString(), 0, true); } catch (Exception e) { LogUtils.LOGD("TAG", "MSG", pE); MessageUtils um = new MessageUtils(pActivity, "CAN'T Show Exception", e.toString(), 0, true); } }