This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Android and the fly likes IS there a way to configure error page for android application? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "IS there a way to configure error page for android application?" Watch "IS there a way to configure error page for android application?" New topic
Author

IS there a way to configure error page for android application?

Thennam Pandian
Ranch Hand

Joined: Oct 11, 2005
Posts: 163
Hi,

I am new to android application. In web application, we can configure error page for the entire application in web.xml.

Like that, is it possible to configure a error page ( Activity ) for entire android application.
Bill Mote
Ranch Hand

Joined: Feb 04, 2010
Posts: 44
Yes. It can be done. I instantiate a helper class that catches all unhandled exceptions, dumps the data to a file and on the next run prompts the user to e-mail the crash data to me.

Bill Mote
Thennam Pandian
Ranch Hand

Joined: Oct 11, 2005
Posts: 163
Could you please provide me more information about the helper class that catches all unhandled exceptions?

Please provide me all information about this class like configuration details and super class.


if possible, point me to a good link or share your class.
Bill Mote
Ranch Hand

Joined: Feb 04, 2010
Posts: 44
I'm sorry, but I cannot provide you any specific code. It is not mine to share. I can tell you that I instantiate the class as a singleton from within my application. Here's at least a hint ...



I hope that's helpful.

Bill Mote
Sai Hegde
security forum advocate
Ranch Hand

Joined: Oct 26, 2010
Posts: 199
    
    1

Did you look at the ACRA libraries???
http://code.google.com/p/acra/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IS there a way to configure error page for android application?
 
Similar Threads
Android sources of information - twitter / RSS / blog feeds etc?
custom 404 and 500 error pages in was 6.0
EL is not working
Exception Management in a web applications
Problem with forwarding page towards error page