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 { |
115 |
|
|
116 |
isLaunchedforShortcut = getIntent().getBooleanExtra("shortcut", false); |
isLaunchedforShortcut = getIntent().getBooleanExtra("shortcut", false); |
117 |
|
|
118 |
|
ProviderFactory.purgeOldEntries(); //cleanup before fetching more data |
119 |
|
|
120 |
if (savedInstanceState == null) { |
if (savedInstanceState == null) { |
121 |
|
|
122 |
|
|
142 |
|
|
143 |
} |
} |
144 |
|
|
145 |
|
|
146 |
|
|
147 |
|
|
148 |
|
|
149 |
|
|
150 |
@Override |
@Override |
151 |
protected void onDestroy() { |
protected void onDestroy() { |
152 |
super.onDestroy(); |
super.onDestroy(); |
153 |
|
|
154 |
if (findStationsTask != null) { |
isRunning = false; |
155 |
findStationsTask.cancel(true); |
|
|
} |
|
156 |
if (locationLookup != null) { |
if (locationLookup != null) { |
157 |
locationLookup.stopSearch(); |
locationLookup.stopSearch(); |
158 |
} |
} |
159 |
isRunning = false; |
if (findStationsTask != null) { |
160 |
|
findStationsTask.cancel(true); |
161 |
|
} |
162 |
} |
} |
163 |
|
|
164 |
|
|