The upcoming ACRA release will (probably) contain the ability to
include a custom application-private log file in a report.  So if you
only care for reading the system log to read your own log messages,
that should be taken care of.  Of course, if you really want to read
the actual stuff logged by the system and other apps, that's going to
be tougher.

On Thu, Jul 12, 2012 at 5:19 PM, b0b <[email protected]> wrote:
> 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 [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

-- 
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

Reply via email to