On Jan 20, 6:20 pm, "Faber Fedor" <[email protected]> wrote:
> I wrote some reverse geocoding, geolocation and proximity alert routines for
> my little Android app. I took my Android out with me when running errands
> to test my routines; they're kinda hard to test from my couch. Half of them
> didn't work.
>
> What's the best way to debug something like this? Sprinkle a bunch of
> printf statements (or whatever you call them in Java) throughout the app?
> Log everything to the sdcard? Write a toggleable view (is that even
> possible?) that acts as a console?
>
> Suggestions?
>
Log everything with this. Then it shows up in Logcat in Eclipse (or
DDMS).
android.util.Log
http://code.google.com/android/reference/android/util/Log.html
To show times when methods were called use Traceview. It might be
helpful for the location methods.
Traceview: A Graphical Log Viewer
http://code.google.com/android/reference/traceview.html
- Juan T.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---