Guest User

Untitled

a guest
Mar 24th, 2012
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.48 KB | None | 0 0
  1. public class B2SShareFeedReader extends Activity implements OnClickListener {
  2.     protected Intent intent = new Intent();
  3.  
  4.     @Override
  5.     protected void onCreate(Bundle savedInstanceState) {
  6.         super.onCreate(savedInstanceState);
  7.  
  8.         Button btn = (Button) findViewById(R.id.button1);
  9.         btn.setOnClickListener(this);
  10.         setContentView(R.layout.feed);
  11.     }
  12.  
  13.     @Override
  14.     public void onClick(View v) {
  15.         intent.setClass(B2SShareFeedReader.this, Feed.class);
  16.         startActivity(intent);
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment