Commit 00578b8c authored by Edward Wang's avatar Edward Wang
Browse files

NativeCrashActivity: use StringBuilder

parent e1e092e9
......@@ -110,10 +110,12 @@ public class NativeCrashActivity extends Activity {
HttpPost httpPost = new HttpPost("http://people.videolan.org/~magsoft/vlc-android_crashes/upload_crash_log.php");
try {
String msg = "";
for (int i = 0; i < params.length; ++i)
msg += params[i] + "\n";
httpPost.setEntity(new ByteArrayEntity(compress(msg)));
StringBuilder msgBuilder = new StringBuilder();
for (int i = 0; i < params.length; ++i) {
msgBuilder.append(params[i]);
msgBuilder.append("\n");
}
httpPost.setEntity(new ByteArrayEntity(compress(msgBuilder.toString())));
httpClient.execute(httpPost);
} catch (ClientProtocolException e) {
e.printStackTrace();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment