--- android/TrainInfo/src/dk/thoerup/traininfo/WelcomeScreen.java 2011/07/07 20:39:26 1549 +++ android/TrainInfo/src/dk/thoerup/traininfo/WelcomeScreen.java 2011/07/07 20:42:03 1550 @@ -203,6 +203,7 @@ boolean succeeded; ProgressDialog dlg; OfflineStationProvider osp; + String exMsg; public StationLoader(OfflineStationProvider osp) { this.osp = osp; @@ -215,7 +216,7 @@ succeeded = true; } catch (Exception e) { succeeded = false; - Toast.makeText(WelcomeScreen.this, "Error " + e.getMessage(), Toast.LENGTH_LONG).show(); + exMsg = e.getMessage(); } return null; } @@ -241,6 +242,8 @@ Editor edit = prefs.edit(); edit.putLong(stationsreload, System.currentTimeMillis() ); edit.commit(); + } else { + Toast.makeText(WelcomeScreen.this, "Error " + exMsg, Toast.LENGTH_LONG).show(); } } }