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.
getApplicationContext().bindService(
new Intent(getApplicationContext(), MyAndroidUpnpServiceImpl.class),
serviceConnection,
Context.BIND_AUTO_CREATE
);
but the problem is android activity is blocked. untill the service,
onServiceConnected(ComponentName className, IBinder service){ ..}
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.