Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.11 KB | None | 0 0
  1. package my.book.namespace;
  2.  
  3. import android.app.Activity;
  4. import android.content.Intent;
  5. import android.os.Bundle;
  6. import android.view.View;
  7. import android.view.View.OnClickListener;
  8. import android.widget.ImageView;
  9.  
  10.  
  11. public class two extends Activity {
  12.  
  13.     /** Called when the activity is first created. */
  14.     @Override
  15.     public void onCreate(Bundle savedInstanceState) {
  16.         super.onCreate(savedInstanceState);
  17.  
  18.         setContentView(R.layout.two);
  19.  
  20.         ImageView myimg = (ImageView) findViewById(R.id.two);
  21.         myimg.setOnClickListener(new OnClickListener() {
  22.  
  23.             @Override
  24.             public void onClick(View arg0) {
  25.                 startActivity(new Intent(two.this, three.class));
  26.  
  27.             }
  28.         });
  29.  
  30.         ImageView myimg1 = (ImageView) findViewById(R.id.menu);
  31.         myimg1.setOnClickListener(new OnClickListener() {
  32.  
  33.             @Override
  34.             public void onClick(View arg0) {
  35.                 startActivity(new Intent(two.this, TheLastOfUsActivity.class));
  36.  
  37.             }
  38.         });
  39.  
  40.         // TODO Auto-generated method stub
  41.     }
  42.  
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement