--- android/TrainInfo/src/dk/thoerup/traininfo/WelcomeScreen.java 2009/11/12 10:03:22 500 +++ android/TrainInfo/src/dk/thoerup/traininfo/WelcomeScreen.java 2010/06/14 06:34:29 846 @@ -4,11 +4,17 @@ import android.content.Intent; import android.net.Uri; import android.os.Bundle; +import android.os.Handler; +import android.os.Message; import android.view.View; import android.view.Window; import android.view.View.OnClickListener; import android.widget.Button; +import com.nullwire.trace.ExceptionHandler; + +import dk.thoerup.checkupdates.CheckUpdates; + public class WelcomeScreen extends Activity{ public enum ListType { ListNearest, @@ -16,6 +22,8 @@ ListFavorites } + Handler handler = new Handler(); + @Override public void onCreate(Bundle savedInstanceState) { requestWindowFeature( Window.FEATURE_NO_TITLE ); @@ -33,8 +41,23 @@ Button aboutButton = (Button) findViewById(R.id.about); aboutButton.setOnClickListener( new AboutListener() ); + + ExceptionHandler.register(this, "http://t-hoerup.dk/android/trace.php"); + + CheckUpdates update = new CheckUpdates(); + update.checkForUpdates(this, "http://t-hoerup.dk/android/traininfo/version.txt", "TrainInfo DK"); + /* + Runnable r = new Runnable() { + @Override + public void run() { + View splash = findViewById(R.id.splash); + splash.setVisibility(View.GONE); + } + }; + handler.postDelayed(r, 1500); + */ } - + class AboutListener implements OnClickListener { @Override