Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class B2SShareFeedReader extends Activity implements OnClickListener {
- protected Intent intent = new Intent();
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- Button btn = (Button) findViewById(R.id.button1);
- btn.setOnClickListener(this);
- setContentView(R.layout.feed);
- }
- @Override
- public void onClick(View v) {
- intent.setClass(B2SShareFeedReader.this, Feed.class);
- startActivity(intent);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment