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 { |
145 |
protected void onDestroy() { |
protected void onDestroy() { |
146 |
super.onDestroy(); |
super.onDestroy(); |
147 |
|
|
148 |
if (findStationsTask != null) { |
isRunning = false; |
149 |
findStationsTask.cancel(true); |
|
|
} |
|
150 |
if (locationLookup != null) { |
if (locationLookup != null) { |
151 |
locationLookup.stopSearch(); |
locationLookup.stopSearch(); |
152 |
} |
} |
153 |
isRunning = false; |
if (findStationsTask != null) { |
154 |
|
findStationsTask.cancel(true); |
155 |
|
} |
156 |
} |
} |
157 |
|
|
158 |
|
|