From bd6f50faf3f7b4a60d224363d8b3e73bd4f4a478 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Mon, 24 Feb 2014 16:08:28 -0800 Subject: Add more information to Send Logs function --- src/github/daneren2005/dsub/fragments/MainFragment.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/github') 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); -- cgit v1.2.3