SendLog

SendLog is a diagnostic tool. It will send the log file and a process list from your phone to an email.

This is useful to send to the developer of an application in case it crashes or otherwise misbehaves.

You can choose any of the formats that logcat supports. The default and recommended format is "time".

It will add the output of "top" to the email. This shows the list of processes and the amount of CPU they are using.

You can create a home shortcut where you can specify the destination email, format and email client.

Developers

If SendLog is installed you can invoke it from your application using the following code:

    Intent intent = getPackageManager().getLaunchIntentForPackage("org.l6n.sendlog");
    intent.setType("5|com.google.android.gm.ComposeActivityGmail|android@l6n.org");
    startActivity(intent);

All the parameters are optional, but they must be in the order shown, i.e. you can remove parameters from the end.

The first parameter is the format from this zero-based list: brief, process, tag, thread, raw, time, threadtime, long.

You can also add additional parameters to logcat by adding a line like this:

    intent.putExtra("filter", "MyApp:D *:I");
This is probably most useful for adding filters, as described in the logcat reference.

History

Version 1.0.4 - 18 August 2010
Limit the size of the log data for Android versions 2.1 and higher. This option is not available for earlier Android versions. This ensures that the data fits in the email text. The data is limited to 300 lines - that's a bit of an arbitrary limit. Also added a terminator to the email.
Version 1.0.3 - 28 June 2010
Show a progress dialog while it's working.
Version 1.0.2 - 10 May 2010
Add the possibility to specify filters in extras when invoked from another application.
Make the activity translucent.
Version 1.0.1 - 25 March 2010
Make compatible with Android 1.1 (previous versions unnecessarily required 1.5).
Version 1.0.0 - 18 March 2010
Add format and email client to shortcut.
Version 0.0.4 - 11 February 2010
Enable it to create shortcuts where the destination email can be specified.
Version 0.0.3 - 16 October 2009
Add SendLog version to email.
Version 0.0.2 - 22 June 2009
Add "top" output and Android version.
Version 0.0.1 - 04 June 2009
Initial version.

Back

Please send all comments and suggestions to android@l6n.org.