Android: Communication Activity / Service
<p>I have some questions concerning the communication between an Activity and a Service.
I'd like to write a speedmeter application, where the UI is constantly updated with new data derived from the GPS sensor.</p>

<p>So far, I have an LocationListener running in a service. What is the best practice in Android:</p>

<p>1) Access the service from an Activity, let's say every second and update the UI. Or,<br>
2) Let the service update the UI.</p>

<p>Could you provide some helpful links for case 2), please?. </p>

<p>Case 1) shouldn't be a problem with a LocalService and an IBinder interface, right?</p>

<p>Thanks!</p>
