开发者

How to save Android logs on the go

I´m currently building an Android 开发者_如何学Pythonapp, which tracks the user´s location. My aim is to test it on the go, so the device can´t be connected to my computer. Nevertheless I want to read my logs after returning back home.

What is the easiest way to save my logs on the device and show them in eclipse later? I just want to save my application´s logs.

Thank you, Jonathan


The "logs" -- assuming that you mean LogCat -- are automatically "saved". LogCat is a 64KB ring buffer. You do not have to be plugged into Eclipse to log data. When you plug into Eclipse later, you will see the last 64KB of logs.


Save the logs in some sort of formatted String, than start an email send intent to email them to yourself once complete. or create some List<DataType> where DataType is an object holding some info about an event. once complete, again email them in desired format


You could save your data into an sqllite database. Once you exit the app you'll dump the data to a file.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜