+ // Listen for GPS and Network position updates
+ gpsListener = new AltosLocationListener(true);
+ netListener = new AltosLocationListener(false);
+
+ LocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);
+
+ locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, gpsListener);
+ locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, netListener);