diff options
author | Christopher Baines <cbaines8@gmail.com> | 2012-01-31 14:19:38 +0000 |
---|---|---|
committer | Christopher Baines <cbaines8@gmail.com> | 2012-01-31 14:19:38 +0000 |
commit | 2f581670f84f5c7d9b43d8657f7d6f5ab7e5e98e (patch) | |
tree | d9b98728d269884ab65de89fb56d85d05da93381 /src/net/cbaines/suma | |
parent | 86a67409307ff384ee0ef07d677045c6e82e52e8 (diff) | |
download | southamptonuniversitymap-2f581670f84f5c7d9b43d8657f7d6f5ab7e5e98e.tar southamptonuniversitymap-2f581670f84f5c7d9b43d8657f7d6f5ab7e5e98e.tar.gz |
Fixed some FindActivity stuff.
Diffstat (limited to 'src/net/cbaines/suma')
-rw-r--r-- | src/net/cbaines/suma/FindActivity.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/net/cbaines/suma/FindActivity.java b/src/net/cbaines/suma/FindActivity.java index f0a16ac..154cd64 100644 --- a/src/net/cbaines/suma/FindActivity.java +++ b/src/net/cbaines/suma/FindActivity.java @@ -25,7 +25,6 @@ import java.util.Collections; import java.util.Iterator; import java.util.List; - import org.osmdroid.util.GeoPoint; import android.content.Context; @@ -278,7 +277,11 @@ public class FindActivity extends OrmLiteBaseActivity<DatabaseHelper> implements } // Register the listener with the Location Manager to receive location updates locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 10000, 10, this); - locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 10000, 10, this); + try { + locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 10000, 10, this); + } catch (Exception e) { + // Ignore anything that goes wrong here... + } // SotonBusData.getTimetable("SN120128"); |