There are some apps which do this. SendLog is one of them. You can try and figure out how they do it. And this works on all the phones.
Thanks and Regards. Kumar Bibek On Apr 7, 11:26 am, fadden <[email protected]> wrote: > On Apr 6, 10:20 pm, patbenatar <[email protected]> wrote: > > > Does Android keep an internal log that is similar or identical to the > > log you can view with adb logcat via a Terminal window? It's difficult > > when my app crashes while I test it out in the field... > > > Any help would be great! I'm hoping Android keeps a log and there's > > some way I can access it. Oh, I do have root on my test device. > > The log is a 64KB buffer in the kernel. When you initially "logcat" a > device it dumps the contents of the buffer and then just starts > reeling out whatever gets added. > > You can use something like: > > % adb shell > # logcat > /sdcard/log.txt & > > and then retrieve the log at a later time. (I think adb gets a little > weird about the background process; just disconnect the phone and go > about your day.) > > If you have a term program you can examine /sdcard/log.txt from the > device. You can't issue the logcat from the term program because your > app won't have permission, but if you have a rooted device you can > "su" and start it from there. -- 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 To unsubscribe, reply using "remove me" as the subject.

