I am writing an android application for sending email which launches the default mail application of android and asks to allow sending mail or not.
I want to know the type of Exceptions that are expected to throw in this case.
I have gone through Developer guide and some other Android PDFs ,I am finding only base class Exception.
I want to know are there ant other exceptions that will be thrown other that exception, which we need to handle in our program.
The Android SDK documentation will tell you, on any method, which checked exceptions are thrown.
If you are concerned about runtime exceptions, those are undocumented. Just use a
try/catchblock to catch a generalException, and it will catch the runtime exceptions.