70 |
|
|
71 |
Button aboutButton = (Button) findViewById(R.id.about); |
Button aboutButton = (Button) findViewById(R.id.about); |
72 |
aboutButton.setOnClickListener( new AboutListener() ); |
aboutButton.setOnClickListener( new AboutListener() ); |
73 |
|
|
74 |
ExceptionHandler.register(this, "http://t-hoerup.dk/android/trace.php"); |
//Got stacktraces / reports that the register thing sometimes crashes |
75 |
|
try { |
76 |
|
ExceptionHandler.register(this, "http://t-hoerup.dk/android/trace.php"); |
77 |
|
} catch (Exception e) { |
78 |
|
Log.e("TrainInfo", "Error registering exception handler", e); |
79 |
|
} |
80 |
|
|
81 |
CheckUpdates update = new CheckUpdates(); |
CheckUpdates update = new CheckUpdates(); |
82 |
update.checkForUpdates(this, "http://t-hoerup.dk/android/traininfo/version.txt", "TrainInfo DK", null); |
update.checkForUpdates(this, "http://t-hoerup.dk/android/traininfo/version.txt", "TrainInfo DK", null); |
189 |
message.append("By Torben H. Nielsen\n"); |
message.append("By Torben H. Nielsen\n"); |
190 |
|
|
191 |
MessageBox.showMessage(WelcomeScreen.this, message.toString());*/ |
MessageBox.showMessage(WelcomeScreen.this, message.toString());*/ |
192 |
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://t-hoerup.dk/android/traininfo/")); |
/*Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://t-hoerup.dk/android/traininfo/")); |
193 |
startActivity(browserIntent); |
startActivity(browserIntent);*/ |
194 |
|
|
195 |
|
Intent intent = new Intent(WelcomeScreen.this, AboutScreen.class); |
196 |
|
WelcomeScreen.this.startActivity(intent); |
197 |
} |
} |
198 |
|
|
199 |
} |
} |