tags:

views:

446

answers:

3

Is there anyone using Flurry to generate reports for uncaught exceptions that could post some sample code on how to do this?

I don't see any example via Flurry themselves, and though I've seen code samples of custom exception reporters, I haven't seen a simple example of how to implement the basic error reporting just using Flurry.

Thanks.

A: 

I'm not using it for uncaught exceptions , but you can catch it and then send it to flurry.

Alex Volovoy
+1  A: 

Flurry does it automatically (if you have it running). However, the error reporting is lame. They only catch the message w/o giving you the stack trace, so you may end up seeing (for example) that people are getting lots of NullPointerExceptions, but you won't have any idea where, or how, they're happening. If you try to do it yourself with the FlurryAgent.onEvent() method you'll quickly discover that they limit you to 255 characters.

If you need detailed error reporting it really is better to roll your own right now.

fiXedd
Thanks for the reply. Yeah, it looks like the Flurry error reporting is basically not worth implementing, which is weird because if they just allowed you to capture the full stack trace it would be pretty nice. The error module in their web interface has a key M = Method, which made me think you could at least capture the method that threw the error, but I don't see how you'd even do that.So as you suggest, I'll probably end up rolling my own, probably implementing one similar to others I've seen that prompt the user to email the stack trace back to me.
polyclef
+1  A: 

I wasn't going to post this initially, but since it sounds like Flurry's error reporting sucks, you should check android-remote-stacktrace. It sends the stack trace to a url, which you can use to redirect it to an e-mail or just gather it on the server.

Daniel Lew
Hey Geek Could U pls guide me start learning the basics of flurry analytics in android? Where can i find its tutorial kind of things?
OM The Eternity