package my.book.namespace; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.ImageView; public class TheLastOfUsActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); ImageView myimg = (ImageView) findViewById(R.id.enter); myimg.setOnClickListener(new OnClickListener() { @Override public void onClick(View arg0) { startActivity(new Intent(TheLastOfUsActivity.this, one.class)); } }); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)