Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

test: Reply
 
LinkBack Thread Tools
Old December 8th, 2011, 12:09 AM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Mar 2010
Posts: 2
 
Device(s):
Carrier: Not Provided

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
sponsored links
Reply
Tags
android, crash, development, reporting


Go Back   Android Forums > Android Development > Application Development
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 05:39 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.