/[projects]/android/TrainInfo/src/dk/thoerup/traininfo/WelcomeScreen.java
ViewVC logotype

Diff of /android/TrainInfo/src/dk/thoerup/traininfo/WelcomeScreen.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 500 by torben, Thu Nov 12 10:03:22 2009 UTC revision 916 by torben, Sat Jun 26 10:47:52 2010 UTC
# Line 4  import android.app.Activity; Line 4  import android.app.Activity;
4  import android.content.Intent;  import android.content.Intent;
5  import android.net.Uri;  import android.net.Uri;
6  import android.os.Bundle;  import android.os.Bundle;
7    import android.os.Handler;
8    import android.os.Message;
9  import android.view.View;  import android.view.View;
10  import android.view.Window;  import android.view.Window;
11  import android.view.View.OnClickListener;  import android.view.View.OnClickListener;
12  import android.widget.Button;  import android.widget.Button;
13    
14    import com.nullwire.trace.ExceptionHandler;
15    
16    import dk.thoerup.checkupdates.CheckUpdates;
17    
18  public class WelcomeScreen extends Activity{  public class WelcomeScreen extends Activity{
19          public enum ListType {          public enum ListType {
20                  ListNearest,                  ListNearest,
# Line 16  public class WelcomeScreen extends Activ Line 22  public class WelcomeScreen extends Activ
22                  ListFavorites                  ListFavorites
23          }          }
24                    
25            Handler handler = new Handler();
26            
27          @Override          @Override
28          public void onCreate(Bundle savedInstanceState) {          public void onCreate(Bundle savedInstanceState) {
29                  requestWindowFeature( Window.FEATURE_NO_TITLE );                  
30                  super.onCreate(savedInstanceState);                  super.onCreate(savedInstanceState);
31                    requestWindowFeature( Window.FEATURE_NO_TITLE );
32                  setContentView(R.layout.welcome);                  setContentView(R.layout.welcome);
33                                    
34                  Button nearestButton = (Button) findViewById(R.id.nearest);                  Button nearestButton = (Button) findViewById(R.id.nearest);
# Line 33  public class WelcomeScreen extends Activ Line 42  public class WelcomeScreen extends Activ
42                                    
43                  Button aboutButton = (Button) findViewById(R.id.about);                  Button aboutButton = (Button) findViewById(R.id.about);
44                  aboutButton.setOnClickListener( new AboutListener() );                  aboutButton.setOnClickListener( new AboutListener() );
45                    
46                    ExceptionHandler.register(this, "http://t-hoerup.dk/android/trace.php");
47                    
48                    CheckUpdates update = new CheckUpdates();
49                    update.checkForUpdates(this, "http://t-hoerup.dk/android/traininfo/version.txt", "TrainInfo DK", null);
50                    /*
51                    Runnable r = new Runnable() {
52                            @Override
53                            public void run() {
54                                    View splash = findViewById(R.id.splash);
55                                    splash.setVisibility(View.GONE);
56                            }
57                    };              
58                    handler.postDelayed(r, 1500);
59                    */
60          }          }
61                            
62          class AboutListener implements OnClickListener {          class AboutListener implements OnClickListener {
63    
64                  @Override                  @Override

Legend:
Removed from v.500  
changed lines
  Added in v.916

  ViewVC Help
Powered by ViewVC 1.1.20