/[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 482 by torben, Thu Oct 29 09:38:13 2009 UTC revision 500 by torben, Thu Nov 12 10:03:22 2009 UTC
# Line 1  Line 1 
1  package dk.thoerup.traininfo;  package dk.thoerup.traininfo;
2    
 import dk.thoerup.traininfo.util.MessageBox;  
3  import android.app.Activity;  import android.app.Activity;
4  import android.content.Intent;  import android.content.Intent;
5    import android.net.Uri;
6  import android.os.Bundle;  import android.os.Bundle;
7  import android.view.View;  import android.view.View;
8  import android.view.Window;  import android.view.Window;
# Line 39  public class WelcomeScreen extends Activ Line 39  public class WelcomeScreen extends Activ
39    
40                  @Override                  @Override
41                  public void onClick(View v) {                  public void onClick(View v) {
42                            /*
43                            String appName = WelcomeScreen.this.getResources().getString(R.string.app_name);
44                            String ver = WelcomeScreen.this.getResources().getString(R.string.app_version);                
45                                                    
46                                                    StringBuffer message = new StringBuffer();
47                          MessageBox.showMessage(WelcomeScreen.this, "about");                          message.append(appName);
48                            message.append(" v").append(ver).append("\n");
49                            message.append("By Torben H. Nielsen\n");
50    
51                            MessageBox.showMessage(WelcomeScreen.this, message.toString());*/
52                            Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.t-hoerup.dk/android/traininfo/"));
53                            startActivity(browserIntent);
54                  }                  }
55                    
56          }          }
57            
58          class StationListListener implements OnClickListener{          class StationListListener implements OnClickListener{
59                  ListType launchType;                  ListType launchType;
60                  StationListListener(ListType type) {                  StationListListener(ListType type) {

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

  ViewVC Help
Powered by ViewVC 1.1.20