Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. public void gotoSecondActivity(View v) {
  2.  
  3. Intent intent = new Intent(this, SecondActivity.class);
  4. intent.putIntegerArrayListExtra("myInt", myVariable);
  5. startActivity(intent);
  6. }
  7.  
  8. var = getIntent().getIntExtra("myInt", 0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement