9 |
import android.view.View.OnClickListener; |
import android.view.View.OnClickListener; |
10 |
import android.widget.Button; |
import android.widget.Button; |
11 |
|
|
12 |
|
import com.nullwire.trace.ExceptionHandler; |
13 |
|
|
14 |
|
import dk.thoerup.checkupdates.CheckUpdates; |
15 |
|
|
16 |
public class WelcomeScreen extends Activity{ |
public class WelcomeScreen extends Activity{ |
17 |
public enum ListType { |
public enum ListType { |
18 |
ListNearest, |
ListNearest, |
37 |
|
|
38 |
Button aboutButton = (Button) findViewById(R.id.about); |
Button aboutButton = (Button) findViewById(R.id.about); |
39 |
aboutButton.setOnClickListener( new AboutListener() ); |
aboutButton.setOnClickListener( new AboutListener() ); |
40 |
|
|
41 |
|
ExceptionHandler.register(this, "http://t-hoerup.dk/android/trace.php"); |
42 |
|
|
43 |
|
CheckUpdates update = new CheckUpdates(); |
44 |
|
update.checkForUpdates(this, "http://t-hoerup.dk/android/traininfo/version.txt", "TrainInfo DK"); |
45 |
} |
} |
46 |
|
|
47 |
class AboutListener implements OnClickListener { |
class AboutListener implements OnClickListener { |