Back to project page android_bunble.
The source code is released under:
Apache License
If you think the Android project android_bunble 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.example.android_bunble; /* w w w.ja va 2s.c om*/ import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class ActionDestination extends Activity implements OnClickListener{ private Button mBtnBack = null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main3); mBtnBack = (Button) findViewById(R.id.btnBack3); mBtnBack.setOnClickListener(this); } @Override public void onClick(View view) { switch (view.getId()) { case R.id.btnBack3: { // "com.test" is the package name of the destination class // "com.test.Activity01" is the full class path of the destination class Intent intent = new Intent().setClassName("com.example.android_bunble", "com.example.android_bunble.MainActivity"); startActivity(intent); // end current class finish(); } break; default: break; } } }