diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-02-24 16:08:28 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-02-24 16:08:28 -0800 |
commit | bd6f50faf3f7b4a60d224363d8b3e73bd4f4a478 (patch) | |
tree | 254a573d936c3b7966042b39ab88b70655a659a2 | |
parent | 92f7719bd0a9dca775ef18ecfb55b99e4cef7c26 (diff) | |
download | dsub-bd6f50faf3f7b4a60d224363d8b3e73bd4f4a478.tar.gz dsub-bd6f50faf3f7b4a60d224363d8b3e73bd4f4a478.tar.bz2 dsub-bd6f50faf3f7b4a60d224363d8b3e73bd4f4a478.zip |
Add more information to Send Logs function
-rw-r--r-- | src/github/daneren2005/dsub/fragments/MainFragment.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/fragments/MainFragment.java b/src/github/daneren2005/dsub/fragments/MainFragment.java index 1905e77a..ebb9318e 100644 --- a/src/github/daneren2005/dsub/fragments/MainFragment.java +++ b/src/github/daneren2005/dsub/fragments/MainFragment.java @@ -5,6 +5,7 @@ import android.content.DialogInterface; import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
+import android.os.Build;
import android.os.Bundle;
import android.os.StatFs;
import android.view.ContextMenu;
@@ -367,11 +368,15 @@ public class MainFragment extends SubsonicFragment { @Override
protected void done(File logcat) {
+ String footer = "Android SDK: " + Build.VERSION.SDK;
+ footer += "\nDevice Model: " + Build.MODEL;
+ footer += "\nDevice Name: " + Build.MANUFACTURER + " " + Build.PRODUCT;
+
Intent email = new Intent(android.content.Intent.ACTION_SEND);
email.setType("text/plain");
email.putExtra(Intent.EXTRA_EMAIL, new String[] {"dsub.android@gmail.com"});
email.putExtra(Intent.EXTRA_SUBJECT, "DSub " + version + " Error Logs");
- email.putExtra(Intent.EXTRA_TEXT, "Describe the problem here");
+ email.putExtra(Intent.EXTRA_TEXT, "Describe the problem here\n\n" + footer);
Uri attachment = Uri.fromFile(logcat);
email.putExtra(Intent.EXTRA_STREAM, attachment);
startActivity(email);
|