Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Development > Application Development

Application Development Dev Lounge for the Coder Folks



Reply
 
LinkBack Thread Tools
Old December 8th, 2011, 12:09 AM   #1 (permalink)
New Member
 
Join Date: Mar 2010
Posts: 2
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Wink better way to get crash data

I have seen a lot of different ways people have suggested for getting crash data from android applications. I've always found them hacky, like writing a file to disk then checking for it the next time the app is loaded. I've come up with a cleaner and more dependable way and put it up on Github.

Basically, I send an intent with the crash data to a service. This is a better solution than writing a file, for example, because when an app force closes, the process is terminated so you can't count on anything that will take any time, such as writing to disk or a network request. And, if all you did was write a file to check for next time, its possible they won't ever load the app again and you'll never get that report.

By sending an intent, your process will be restarted after being terminated so that the intent can be processed. Thus, you can report every exception right when it happened.

Thought you all might like to check it out and use it in your apps. (And if I dont tell anyone, no one will ever know about it.)

https://github.com/guzba/error-reporter

guzba is offline  
Reply With Quote
Sponsors
Reply

Bookmarks

Tags
android, crash, development, reporting


Go Back   Android Forums > Android Development > Application Development User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 11:52 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo