My android aplication tries to connect to a service using
response = client.execute(getRequest);
However the server might be down and at such times I would like to throw a custom exception with a custom message, rather than the message android provides, saying the application has shut down unexpectedly.
Is there any way to do this?
I solved this problem using ACRA
http://code.google.com/p/acra/wiki/BasicSetup
http://code.google.com/p/acra/wiki/AdvancedUsage
You can overwrite the default crash report and display a custom toast instead using