Android to php (url) to sql, db shows nothing. Works in browser
<p>I execute by new CreateNewThread().execute();</p>

<pre><code>class CreateNewThread extends AsyncTask&lt;String, String, String&gt; {

    @Override
    protected void onPreExecute() {
        super.onPreExecute();
        pDialog = new ProgressDialog(CreateThread.this);
        pDialog.setMessage("Creating Thread..");
        pDialog.setIndeterminate(false);
        pDialog.setCancelable(true);
        pDialog.show();
    }

    protected String doInBackground(String... args) {

        tittel = inputTitle.getText().toString();
        tekst = inputText.getText().toString();

        if (!tittel.equals("") &amp;&amp; !tekst.equals("")) {
            try {
                HttpClient httpclient = new DefaultHttpClient();
                HttpPost httppost = new HttpPost(
                        "http://.../createthread?title="
                                + tittel + "&amp;text=" + tekst);
                HttpResponse response = httpclient.execute(httppost);
                HttpEntity entity = response.getEntity();
                InputStream is = entity.getContent();
                BufferedReader in = new BufferedReader(new InputStreamReader(
                        is,"iso-8859-1"));
                System.out.println(tittel);
                System.out.println(tekst);
                System.out.println(in);
                String line;

                while ((line = in.readLine()) != null) {
                    JSONObject jo = new JSONObject(line);
                    System.out.println(jo.getString("svar"));
                }
            } catch (Exception e) {
                System.out.println("catchgreiene" + e);
            }

        } 
        else {
            System.out.println();
        }
        return null;
    }

    protected void onPostExecute(String file_url) {
        pDialog.dismiss();
    }

}
</code></pre>

<p>I'm trying just to run an url. The php-file runs in browser.. This is 2.2 Froyo.
What am I missing here?</p>

<p>I've tried other methods, but this works for a friend. So it should work.</p>
