Commit 2499b037 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Remove the blacklist post

parent 324fb399
......@@ -6,13 +6,6 @@ import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;
import org.apache.http.NameValuePair;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.message.BasicNameValuePair;
import org.videolan.libvlc.util.VLCUtil;
import org.videolan.vlc.R;
......@@ -46,43 +39,5 @@ public class CompatErrorActivity extends Activity {
TextView tv = (TextView)findViewById(;
tv.setText(getResources().getString(R.string.error_message_is) + "\n" + errorMsg);
//AsyncHttpRequest asyncHttpRequest = new AsyncHttpRequest();
//asyncHttpRequest.execute(Build.MODEL, Build.DEVICE);
public static class AsyncHttpRequest extends AsyncTask<String, String, Boolean> {
public AsyncHttpRequest() { }
protected Boolean doInBackground(String... params) {
if (params[0].length() == 0)
return false;
HttpClient httpClient = new DefaultHttpClient();
HttpPost httpPost = new HttpPost("");
try {
List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(1);
nameValuePairs.add(new BasicNameValuePair("model", params[0]));
nameValuePairs.add(new BasicNameValuePair("device", params[1]));
httpPost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
} catch (ClientProtocolException e) {
return false;
} catch (IOException e) {
return false;
Log.d(TAG, "Device model sent.");
return true;
protected void onPostExecute(Boolean result) {
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