--- android/TrainInfo/src/dk/thoerup/traininfo/WelcomeScreen.java 2010/09/24 11:07:44 1131 +++ android/TrainInfo/src/dk/thoerup/traininfo/WelcomeScreen.java 2011/04/26 15:53:48 1393 @@ -5,6 +5,7 @@ import android.net.Uri; import android.os.Bundle; import android.os.Handler; +import android.util.Log; import android.view.View; import android.view.Window; import android.view.View.OnClickListener; @@ -13,6 +14,7 @@ import com.nullwire.trace.ExceptionHandler; import dk.thoerup.androidutils.CheckUpdates; +import dk.thoerup.traininfo.provider.ProviderFactory; public class WelcomeScreen extends Activity{ public enum ListType { @@ -57,7 +59,18 @@ handler.postDelayed(r, 1500); */ } + + + @Override + protected void onDestroy() { + super.onDestroy(); + ProviderFactory.purgeOldEntries(); //exiting application, do some cleanup + } + + + + class AboutListener implements OnClickListener { @Override @@ -72,7 +85,7 @@ message.append("By Torben H. Nielsen\n"); MessageBox.showMessage(WelcomeScreen.this, message.toString());*/ - Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.t-hoerup.dk/android/traininfo/")); + Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://t-hoerup.dk/android/traininfo/")); startActivity(browserIntent); }