On Sat, Mar 12, 2011 at 11:52 AM, Pedro Teixeira <[email protected]>wrote:
> I'd like to store events like pressing buttons but also store the location > and orientation of the device while using my application as well as the time > between this actions. > Stuff like this you'd have to have your own code to read the device settings. If you're hoping for some automatic way to log all this information, I doubt you're going to find it. > Is there any good approach for this? Was I clear or can I try and explain > in another way? > You are free to create and write to files on your own app's space (or even the SD card) for logging purposes. I have a log class that not only writes to the LogCat in debug mode but generates an internal log that I can send in bug reports if and when the app crashes on user devices. It has been *far* more useful than the generic stack traces in the developer console in resolving issues that crop up in the wild. You just have to be careful about logging only what's actually useful and keeping the log file size to something reasonable for a mobile device. ------------------------------------------------------------------------------------------------- TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago transit tracking app for Android-powered devices -- 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

