package com.example.administrator.missphoto; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.ImageButton; import android.widget.ImageView; public class EntryActivity extends Activity { private ImageView iv_back; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.entry_activity); iv_back=(ImageView)findViewById(R.id.iv_back); iv_back.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent i=new Intent(); i.setClass(EntryActivity.this, MainActivity.class); startActivity(i); } }); } }