How to make background service run as a seperate process?
<p>We have developed one android application which will send the request and receive the response from the server and based on the response it will update the UI.This application handles so many different types of requests and it will enunciate as well as display the server status on the status bar.
this application is having around more than 50 different activities and one service handles all request/response and all activities bound to this service so whoever will send the request he will bind with the service and send the request and get the response back.</p>

<p>Now what problem we are facing is as we have added so many request/response because of that it seems like service becomes more overloaded, so obviously application is also get very slow.
So we have decided to make service as separate process including android:process for service in manifest file and try to implement <code>AIDL</code> for that.
But it is not that much easy because each activities making the connection with service and sends its textView,handler, activity to service using <code>Service register()</code> method.
so we can't go for <code>AIDL</code> because <code>AIDL</code> only supports primitive types.
So my doubts are:<br><br>
<b>1</b>. can we make service as separate process and it should be there in same application and packaged with same apk?<br><br>
<b>2</b>. how to handle situation mentioned above where activity depends on service with passing some objects to service and service updates those objects and activity uses it, when we implement <code>AIDL</code>(as far as i know <code>AIDL</code> only supports primitive types)?<br><br>
<b>3</b>. Activity uses some member variables of service so if we changes to <code>AIDL</code> how to make use of those member variables(these member variables are custom objects)?</p>

<p>I tried my best to explain the problem with some examples so please provide me some valuable inputs.</p>

<p>Regards,
Piks.</p>
