Guest User

Untitled

a guest
Jan 16th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. Intent n = new Intent(A.this, C.class);// move from A to C
  2. n.putExtra("varA", "some value");
  3. startActivity(n);
  4.  
  5. Intent n = new Intent(B.this, C.class); // move from B to C
  6. n.putExtra("varB", "some value");
  7. startActivity(n);
  8.  
  9. Bundle extras = getIntent().getExtras();
  10. if(extras != null)
  11. {
  12.  
  13. String aval = extras.getString("varA");
  14. String bval = extras.getString("varB");
  15. }
Add Comment
Please, Sign In to add comment