can't go back button
<p>I have a problem with my Android app. I have three Activities that all connect with one another with a Image button. </p>

<p>My problem is I can't go back on any of the pages, just forwards. I have been reading about the back button and how to keep its state and not kill (End) it, so the user can click back if needed too. </p>

<p>I am new to Android and I know there's a lot to learn. So thank you for your help.</p>

<p>Java code for first Activity:</p>

<pre><code>package my.hope;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.content.Intent;
public class NewhopeActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    ImageView myImage = (ImageView) findViewById(R.id.imagebutton1);
    myImage.setOnClickListener(new OnClickListener() {

            public void onClick(View v) {
                // TODO Auto-generated method stub          
                Intent intent = new Intent(NewhopeActivity.this, Act2.class);
                startActivity(intent);
            }

});
}
</code></pre>

<p>}</p>

<p>XML code:</p>

<pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
    &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" android:background="@drawable/mint"&gt;


    &lt;ImageButton
    android:id="@+id/imagebutton1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_marginLeft="250dp"
    android:background="@drawable/ic_launcher"
    android:onClick="Act2"
    android:src="@drawable/ic_launcher" /&gt;

    &lt;/LinearLayout&gt;
</code></pre>
