I've implemented a location listener that executes a piece of code on location changed, but it does'nt seem to work, the location does not update on change of location for some reason.
Using java Syntax Highlighting
- locManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
- for (String p : locManager.getProviders(true))
- locManager.requestLocationUpdates(p, 0, 0,
- Listing.this);
- public void onLocationChanged(Location location) {
- System.err.println("In location changed-ListingActivity");
- super.onLocationChanged(location);
- refresh();
- }
Parsed in 0.030 seconds, using GeSHi 1.0.8.4


