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

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -