Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exception Handling in Android?

Tags:

android

I read somewhere not to exception handle when developing in Android, is that true?

If one does need to exception handle are there any logging tools for 2.1 and above?

If shouldn't exception handle, why is it not recommended to at least use the below? try { body-code } catch (exception-classname variable-name) { handler-code }

like image 786
user412317 Avatar asked Jan 21 '23 15:01

user412317


1 Answers

This is not true, there are always scenarios where you need try catch exception handling code. There are built in logging classes that you can post messages with severity levels to and view while debugging or do something more useful for deployed apps like sending them somewhere.

like image 82
Patrick Kafka Avatar answered Jan 31 '23 20:01

Patrick Kafka