Android Utililty Methods Exception Log

List of utility methods to do Exception Log

Description

The list of methods to do Exception Log are organized into topic(s).

Method

voidlogException(String tag, Throwable ex)
log Exception
Log.e(tag, ex.getLocalizedMessage(), ex);
voidshowException(Context parent, Throwable ex)
show Exception
if (ex != null) {
    Log.e(parent.getClass().getSimpleName(),
            ex.getLocalizedMessage(), ex);
    new AlertDialog.Builder(parent).setTitle("Error")
            .setMessage(ex.getLocalizedMessage())
            .setNeutralButton("Close", null).show();