Back to project page swap.
The source code is released under:
This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a co...
If you think the Android project swap listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.solazo.swap; // w ww . ja va2 s .c o m import android.os.Bundle; import android.app.Activity; import android.content.Intent; //import android.view.Menu; import android.view.View; public class MainActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (AppState.getInstance(this).isOnline(this)) { setContentView(R.layout.activity_main); } else { setContentView(R.layout.activity_no_internet); } } public void startGuessActivity(View view) { Intent intent = new Intent(this, GuessActivity.class); startActivity(intent); } public void startSubmitActivity(View view) { Intent intent = new Intent(this, SubmitActivity.class); startActivity(intent); } public void startAboutActivity(View view) { Intent intent = new Intent(this, AboutActivity.class); startActivity(intent); } }