[Android] NativeCrashActivity: write more information about the device in the log
Adrien Maglo
git at videolan.org
Thu May 15 10:04:55 CEST 2014
vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Thu May 15 10:04:33 2014 +0200| [56542bcdcc388b237af0557662663fef0a9f17df] | committer: Adrien Maglo
NativeCrashActivity: write more information about the device in the log
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=56542bcdcc388b237af0557662663fef0a9f17df
---
vlc-android/src/org/videolan/vlc/gui/NativeCrashActivity.java | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/NativeCrashActivity.java b/vlc-android/src/org/videolan/vlc/gui/NativeCrashActivity.java
index 596e938..5609bc6 100644
--- a/vlc-android/src/org/videolan/vlc/gui/NativeCrashActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/NativeCrashActivity.java
@@ -58,7 +58,8 @@ public class NativeCrashActivity extends Activity {
@Override
public void onClick(View v) {
AsyncHttpRequest asyncHttpRequest = new AsyncHttpRequest();
- asyncHttpRequest.execute(Build.MODEL, Build.DEVICE, mLog);
+ asyncHttpRequest.execute(Build.BRAND, Build.MANUFACTURER, Build.PRODUCT, Build.MODEL,
+ Build.DEVICE, Build.VERSION.RELEASE, mLog);
}
});
@@ -104,8 +105,10 @@ public class NativeCrashActivity extends Activity {
HttpPost httpPost = new HttpPost("http://people.videolan.org/~magsoft/vlc-android_crashes/upload_crash_log.php");
try {
- httpPost.setEntity(new ByteArrayEntity(
- compress(params[0] + "\n" + params[1] + "\n" + params[2])));
+ String msg = "";
+ for (int i = 0; i < params.length; ++i)
+ msg += params[i] + "\n";
+ httpPost.setEntity(new ByteArrayEntity(compress(msg)));
httpClient.execute(httpPost);
} catch (ClientProtocolException e) {
e.printStackTrace();
More information about the Android
mailing list