Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Ideally this not NOT the best way to approach it. Specifically android is a system that bases its services on passing information via intents from activity to activity, activity to service, service to service.</p> <p>The way I would approach this would involving having an app on the phone that would be communicating with a service. Specifically the app would receive the data from the service. However; in order to allow the activity to listen to it, you could have the service broadcast a message saying there is new information, and have this activity intercept it. When the service is building this message, you could have information passed via an intent (extra) to the activity. The activity would have a Broadcast Listener inside of it that specifically updates information relative to that service inside of that activity.</p> <p>And perhaps to keep information from being lost, throw messages into a stack and read it accordingly until its empty (This is assuming you get ton of information)</p> <p>These links should help</p> <p><strong>Broadcast Reciever</strong></p> <p><a href="http://thinkandroid.wordpress.com/2010/02/02/custom-intents-and-broadcasting-with-receivers/" rel="nofollow">http://thinkandroid.wordpress.com/2010/02/02/custom-intents-and-broadcasting-with-receivers/</a></p> <p><strong>Services</strong></p> <p><a href="http://developer.android.com/reference/android/app/Service.html" rel="nofollow">http://developer.android.com/reference/android/app/Service.html</a></p> <p><a href="http://marakana.com/forums/android/examples/60.html" rel="nofollow">http://marakana.com/forums/android/examples/60.html</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload