/[projects]/android/TrainInfo/src/dk/thoerup/traininfo/LocationLookup.java
ViewVC logotype

Diff of /android/TrainInfo/src/dk/thoerup/traininfo/LocationLookup.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 569 by torben, Thu Oct 29 13:42:57 2009 UTC revision 570 by torben, Fri Jan 29 12:34:17 2010 UTC
# Line 57  public class LocationLookup implements L Line 57  public class LocationLookup implements L
57                                  if (provider.equalsIgnoreCase("gps"))                                  if (provider.equalsIgnoreCase("gps"))
58                                          hasGps = true;                                          hasGps = true;
59                                  locManager.requestLocationUpdates(provider, 0, 0, this);                                  locManager.requestLocationUpdates(provider, 0, 0, this);
60                                                                    Location tmpLastKnown = locManager.getLastKnownLocation(provider);
61                                  saveLastKnownLocation(locManager.getLastKnownLocation(provider));                                  if (tmpLastKnown != null) {
62                                            saveLastKnownLocation(tmpLastKnown);
63                                    }
64                          }                          }
65                  } else {                  } else {
66                          // message that no suitable provider was found                          // message that no suitable provider was found

Legend:
Removed from v.569  
changed lines
  Added in v.570

  ViewVC Help
Powered by ViewVC 1.1.20