The thing is that it is better to not rely on READ_LOGS to (for example) 
provide logs to ACRA.
The bonus is that your app will not need that permission which is kind of 
scary.

How can it be done ?

- wrap all your logging calls into functions adding your log message + any 
other metadata (like tag or timestamp) to a cache were you keep the last n  
log lines. Can be done with a simple LinkedHashMap overriding 
removeEldestEntry().
- modify ACRA by  adding a custom column that will contain the content of 
the log cache. When the crash report is constructed, fill that column with 
the cache data
- profit!


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to