Back to project page 2014-Droid-code.
The source code is released under:
GNU General Public License
If you think the Android project 2014-Droid-code 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 com.androidbook.simpleasync; /*/*w w w . j av a 2s . c om*/ * This class is the example from the book chapter you have on moodle * From Android Wireless Application Development Volume II Chapter 1 */ import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; public class ChoiceActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } public void onClickThreadButton(View v) { Intent newIntent = new Intent(this, SimpleThreadActivity.class); startActivity(newIntent); } public void onClickAsyncButton(View v) { Intent newIntent = new Intent(this, SimpleAsyncActivity.class); startActivity(newIntent); } public void onClickInUIThread(View v) { Intent newIntent = new Intent(this, SimpleNoBGThread.class); startActivity(newIntent); } }