52 |
public static final int DLG_STATIONNAME = 3002; |
public static final int DLG_STATIONNAME = 3002; |
53 |
|
|
54 |
|
|
55 |
public static final int GPS_TIMEOUT_MS = 17500; //how long are we willing to wait for gps fix -in milliseconds |
public static final int GPS_TIMEOUT_MS = 15000; //how long are we willing to wait for gps fix -in milliseconds |
56 |
|
|
57 |
|
|
58 |
static enum LookupMethod { |
static enum LookupMethod { |
140 |
|
|
141 |
} |
} |
142 |
|
|
143 |
|
|
144 |
|
|
145 |
|
|
146 |
|
@Override |
147 |
|
protected void onStart() { |
148 |
|
super.onStart(); |
149 |
|
ProviderFactory.purgeOldEntries(); |
150 |
|
} |
151 |
|
|
152 |
|
|
153 |
|
|
154 |
|
|
155 |
@Override |
@Override |
156 |
protected void onDestroy() { |
protected void onDestroy() { |
157 |
super.onDestroy(); |
super.onDestroy(); |
158 |
|
|
159 |
if (findStationsTask != null) { |
isRunning = false; |
160 |
findStationsTask.cancel(true); |
|
|
} |
|
161 |
if (locationLookup != null) { |
if (locationLookup != null) { |
162 |
locationLookup.stopSearch(); |
locationLookup.stopSearch(); |
163 |
} |
} |
164 |
isRunning = false; |
if (findStationsTask != null) { |
165 |
|
findStationsTask.cancel(true); |
166 |
|
} |
167 |
} |
} |
168 |
|
|
169 |
|
|