Hi, Using LocationManager to get location updates:
LocationManager.requestUpdates( String provider, long minTime, float minDistance, LocationListener listener); If our main UI thread registers the LocationListener, will it get blocked whenever the service is trying to get a fix?: public class MyActivvity { public void onCreate() { super.onCreate(); LocationManager manager = getSystemService(Context.LOCATION_SERVICE); manager.requestLocationUpdates(..., new LocationListener() { public void onLocationChanged(Location location) { // is this going to block? } } ); } } There is of course the variant where you can supply a Looper, just not sure how it's working internally with calling-back - I was hoping it would simply post() the onLocationChanged() message by default, instead of attempting to do any work on the same thread before calling it, Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en