203 |
boolean succeeded; |
boolean succeeded; |
204 |
ProgressDialog dlg; |
ProgressDialog dlg; |
205 |
OfflineStationProvider osp; |
OfflineStationProvider osp; |
206 |
|
String exMsg; |
207 |
|
|
208 |
public StationLoader(OfflineStationProvider osp) { |
public StationLoader(OfflineStationProvider osp) { |
209 |
this.osp = osp; |
this.osp = osp; |
216 |
succeeded = true; |
succeeded = true; |
217 |
} catch (Exception e) { |
} catch (Exception e) { |
218 |
succeeded = false; |
succeeded = false; |
219 |
Toast.makeText(WelcomeScreen.this, "Error " + e.getMessage(), Toast.LENGTH_LONG).show(); |
exMsg = e.getMessage(); |
220 |
} |
} |
221 |
return null; |
return null; |
222 |
} |
} |
242 |
Editor edit = prefs.edit(); |
Editor edit = prefs.edit(); |
243 |
edit.putLong(stationsreload, System.currentTimeMillis() ); |
edit.putLong(stationsreload, System.currentTimeMillis() ); |
244 |
edit.commit(); |
edit.commit(); |
245 |
|
} else { |
246 |
|
Toast.makeText(WelcomeScreen.this, "Error " + exMsg, Toast.LENGTH_LONG).show(); |
247 |
} |
} |
248 |
} |
} |
249 |
} |
} |