Pila de impresión de Android

Cómo imprimir información de pila en Android:

1:

RuntimeException re = new RuntimeException (); 
re.fillInStackTrace (); 
Log.e ("información", "información", re);
 
 
2:    
 
  
  
  1. Log.w (TAG, Log.getStackTraceString ( nuevo  Throwable () ));
3:
  1. prueba  {
  2. captura  (InterruptedException e) {
  3.     Log.e (TAG, Log.getStackTraceString (e));  
  4. }  

Supongo que te gusta

Origin blog.csdn.net/lgdlchshg/article/details/25127323
Recomendado
Clasificación