title: How to start service in new thread in android
body: <p>I'm new to this android. i'm using a service to do some background work. so i'm starting the service from my activity as following.</p>
  
  <pre><code>        getApplicationContext().bindService(
          new Intent(getApplicationContext(), MyAndroidUpnpServiceImpl.class),
          serviceConnection,
          Context.BIND_AUTO_CREATE
      );
  </code></pre>
  
  <p>but the problem is android activity is blocked. untill the service,</p>
  
  <pre><code>         onServiceConnected(ComponentName className, IBinder service){ ..}
  </code></pre>
  
  <p>is called back.so i searched regarding this. i came to know  that i have to start my service in new Thread. so please any one help me in doing this. </p>