views:

42

answers:

1

I'm trying to understand remote services at the moment and everything works fine, i can start the service and know how to communicate with it through the AIDL-interface. My problem is that the service seems to still run in the same process like the activity it was started from, because the activity crashes too, if there is an error thrown in the Service.

I set the service process to remote ( android:process=":remote" ) so what am i doing wrong? Or what do i have to do to unbind the service-process completely from the activity-process?

A: 

Post the code but if you are starting your service from your Activity, then they are running in the same process and you don't need to use AIDL. I posted an example of using a Service to do some Background work a few days ago.

http://stackoverflow.com/questions/3197335/3197456#3197456

BrennaSoft
actually i want to do the thing you did first in your post ;) i want to start a service which is completely unbinded from the activity. because of this i have to use context.bindService and the AIDL interface. otherwise there wouldn't be two seperate processes
Sponge