In my Android app I have tried to put Try Catch blocks in all possible places. However I want to avoid the crashing of the app due to any unhandled errors. How can I achieve that?
I have used Thread.setDefaultUncaughtExceptionHandler(handler); but that will just help me to obtain crash- data right?
Why do you want to do this?
If there are places where you can catch an exception and do something meaningful, i.e. display a useful warning and then continue with the application in a consistent and usable state, then fine.
If you can’t take any meaningful action, then just let the failure happen. There are plenty of ways you can be notified of the resulting failures, so you can fix them: have a look at ACRA, for example. Or, the Android Developer console will now report failure of your Market-distributed apps.