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

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

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

revision 947 by torben, Sat Jun 26 11:06:12 2010 UTC revision 948 by torben, Fri Jul 2 14:58:44 2010 UTC
# Line 48  public class StationList extends ListAct Line 48  public class StationList extends ListAct
48                    
49          public static final int OPTIONS_MAP = 2003;          public static final int OPTIONS_MAP = 2003;
50          public static final int OPTIONS_GPSINFO = 2004;          public static final int OPTIONS_GPSINFO = 2004;
   
           
   
51                    
52          public static final int DLG_PROGRESS = 3001;          public static final int DLG_PROGRESS = 3001;
53          public static final int DLG_STATIONNAME = 3002;          public static final int DLG_STATIONNAME = 3002;
54                    
55            
56            public static final int GPS_TIMEOUT_MS = 17500; //how long are we willing to wait for gps fix -in milliseconds
57            
58            
59          static enum LookupMethod {          static enum LookupMethod {
60                  ByLocation,                  ByLocation,
61                  ByName,                  ByName,
# Line 395  public class StationList extends ListAct Line 396  public class StationList extends ListAct
396                  showDialogSafe(DLG_PROGRESS);                  showDialogSafe(DLG_PROGRESS);
397                                    
398                  locationLookup.locateStations();                  locationLookup.locateStations();
399                  stationsFetched.sendEmptyMessageDelayed(LOCATIONFIXTIMEOUT, 20000);                  stationsFetched.sendEmptyMessageDelayed(LOCATIONFIXTIMEOUT, GPS_TIMEOUT_MS);
400          }          }
401                    
402          void startNameSearch(String name) {          void startNameSearch(String name) {

Legend:
Removed from v.947  
changed lines
  Added in v.948

  ViewVC Help
Powered by ViewVC 1.1.20