How can I activity close in Android?
<p>I have three <code>classActivity</code> created. One is super class and other sub class and third is HomeActivity.</p>

<p>Code for super class is :</p>

<pre><code>public class MyActivity extends Activity {

     Button btnHome = null;

     @Override
     protected void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
     }

     public void onHomeClick(View view) {
         String LOG_TAG = "Akshar";
         System.out.println("Hello11111");
         btnHome = (Button) view;
         Log.v(LOG_TAG, "index=" + btnHome);
     } 
   }
</code></pre>

<p>and my subclass code  is :</p>

<pre><code>public class ChooseIsland extends MyActivity {

     Button btn_home = null;
     MyActivity ob1 = new MyActivity();

     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.chooseiland);
         addListenerOnButton();
     }

     private void addListenerOnButton() {
         // TODO Auto-generated method stub
         ob1.onHomeClick(btn_home);
     }
 }
</code></pre>

<p>Now I want to go on Home page when click so when I write ?</p>

<pre><code>Intent intent = new Intent(this, HomeActivity.class);
</code></pre>
