I\'ve an app where I wish to update the Activity (List activity to be precise) only when the activity from Service is in foreground (Active)
I can use ListActivity I
Do we have a generic solution to this ?
Probably a dozen of them. Here are a few:
onResume() and remove it in onPause()registerReceiver() when it is in the foregroundPendingIntent to the serviceResultReceiverContentProvider, with the activity holding onto a Cursor from the provider, and the service updating the providerThis set of projects demonstrates the first three, in the context of remote services.