title: How do I pass data from a background thread to the currently displayed activity?
body: <p>I have two activities, A and B.  Activity A implements a LocationListener that periodically prints out the raw GPS coordinates the screen. Activity B is simply a MapActivity with a MapView.  I want to be able to pass the periodically-generated coordinates from A to B, even with A paused in the background and B in the foreground.  Turns out that the LocationListener indeed continues to retrieve the coordinates when activity A is paused.  With B in focus, then, how do I pass those values over from A?  Is startActivity(intent) appropriate for an activity that's already started and in the foreground?</p>