log Exception - Android android.util

Android examples for android.util:Log

Description

log Exception

Demo Code

import android.util.Log;

public class Main {

  public static void logException(String tag, Throwable ex) {
    Log.e(tag, ex.getLocalizedMessage(), ex);
  }/*from w w w  .  ja  v a2  s  .c o  m*/

}

Related Tutorials