From 2cc38a6c3572c379b279c90f35dd375a9865f882 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sun, 9 Sep 2012 17:41:29 +0200 Subject: [PATCH] Change log view --- OsmAnd/src/net/osmand/plus/OsmandApplication.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/OsmandApplication.java b/OsmAnd/src/net/osmand/plus/OsmandApplication.java index b443c8bf44..97bc67bde4 100644 --- a/OsmAnd/src/net/osmand/plus/OsmandApplication.java +++ b/OsmAnd/src/net/osmand/plus/OsmandApplication.java @@ -46,7 +46,6 @@ import android.content.res.Configuration; import android.os.Build; import android.os.Handler; import android.text.format.DateFormat; -import android.util.Log; import android.view.accessibility.AccessibilityManager; import android.widget.Toast; @@ -510,10 +509,10 @@ public class OsmandApplication extends Application { PrintStream printStream = new PrintStream(out); ex.printStackTrace(printStream); StringBuilder msg = new StringBuilder(); - msg.append( - "Exception occured in thread " + thread.toString() + " : "). //$NON-NLS-1$ //$NON-NLS-2$ - append(DateFormat.format("MMMM dd, yyyy h:mm:ss", System.currentTimeMillis())).append("\n"). //$NON-NLS-1$//$NON-NLS-2$ - append(new String(out.toByteArray())); + msg.append("Version " + Version.getFullVersion(OsmandApplication.this)). //$NON-NLS-1$ + append("Exception occured in thread " + thread.toString() + " : "). //$NON-NLS-1$ //$NON-NLS-2$ + append(DateFormat.format("MMMM dd, yyyy h:mm:ss", System.currentTimeMillis())).append("\n"). //$NON-NLS-1$//$NON-NLS-2$ + append(new String(out.toByteArray())); if (file.getParentFile().canWrite()) { BufferedWriter writer = new BufferedWriter(new FileWriter(file, true));