android : communication between service running in background and activity
<p>I have a service running in the background. Based on some condition it has to start some activity. Activity has to send back the response.</p>

<p>I did google search and found out we have to use Notification mechanism. But I am not clear how to send the response back from activity to the service running.</p>

<p>Also service is collecting sensor data(acclerometer, gps). So should activity be started in separate thread so that collecting sensor data is not affected.</p>

<p>Please clarify.</p>
