android - How do i display the catch exception? -
i want ask how display catch exception in android know if application catching error.. example on this.
try { codes here..... } catch (ioexception e) { //how dpslay exception }
thank in advance.
you can use:
try { // codes here..... } catch(ioexception e){ log.d("my_app", "---------------------"); //separator other logs (optional) e.printstacktrace(); log.d("my_app", "---------------------"); //separator other logs (optional) }
Comments
Post a Comment