AsyncTask in Service - overkill?
<p>Im currently doing some network related stuff,</p>

<pre><code>public void postData() {

HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost("http://www.xx.xx.php");

try {

    List&lt;NameValuePair&gt; nameValuePairs = new ArrayList&lt;NameValuePair&gt;(2);
    nameValuePairs.add(new BasicNameValuePair("id", "12345"));

    httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));


    HttpResponse response = httpclient.execute(httppost);

} catch (ClientProtocolException e) {
    // TODO Auto-generated catch block
} catch (IOException e) {
    // TODO Auto-generated catch block
}
} 
</code></pre>

<p>in an asynctask, which i am executing from a service.</p>

<p>What i would like to know is if its enough to run the network methods directly in the service? Because AFAIK it doesnt run on the UI thread.</p>

<p>Thanks</p>
