Reputation: 6200
I have created one service in my android project which runs separately in process as i declare it in manifest like,
android:process=":MyService"
I know that once you create service in separate process;you can not access any variables from the service.But in my case i want both,
1)Run service in separate process And
2)Access variables from this service.
how can i achieve this?
Is there in trick to do this?
Upvotes: 1
Views: 254
Reputation: 11141
I dont think there might be any direct communication. Though you can use Broadcast receivers.
Send broadcasts from that service and then register the broadcast receiver in another service
Also have a look at this answer
Communication Between Services Running on Different Processes in Andoird?
Upvotes: 1