To create and start a new thread, from inside an activity, you can say: Thread t = new Thread(){ public void run(){ getApplicationContext(). bindService( new Intent(getApplicationContext(), MyAndroidUpnpServiceImpl. class), serviceConnection, Context.