Sharing resources between service and application in android
<p>The code I am trying to implement includes a service and an application. 
When the application is first launched, it starts the service using the 
startService(svc_name) call. Here svc name is an intent pointing to the 
class that runs the service. </p>

<p>I want to share a resource(file/socket connection) between the service 
and the application. For example one writes to a file and another reads 
from it. I am unable to get proper sync between the service and app. </p>

<p>Could you please let me know how this can be achieved? 
Thanks in advance. </p>
