title: Why does AsyncTask run in the main Thread of an application?
body: <p>in my application, I have a class for UI stuff, the name of which is "SettingActivity". </p>
  
  <p>Then for doing some jobs in background, I bind this UI class(SettingActivity) to a Service. 
  There are two predefined methods in that Service(defined in .aidl file), one is startTask(), the other one is stopTask().</p>
  
  <p>Within startTask(), I made a call to an AsyncTask. But when I checked the name of the Looper of this AsyncTask. It is "main". In my opinion, <strong>an AsyncTask should start an another Thread other than the main Thread</strong>. </p>
  
  <p>So does somebody know why this happens?  </p>
  
  <p>The codes are as follows:
  <code></p>
  
  <pre>@Override
      protected void onPreExecute() {
          super.onPreExecute();
          Log.d(TAG, "onPreExecute "+Looper.myLooper().getThread().getName());
      }
  </code></pre>
  
  <p></p>
  
  <p>Then I will get main as the output.</p>