Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Android Intent put extra Bundle
- int id1 = itemlist.get(position).getId();
- Intent i = new Intent(Acitvity1.this, Activity2.class);
- i.putExtra("id", id1);
- startActivity(i);
- in other activity
- id = getIntent().getIntExtra("id", 0);
- name=getIntent().getStringExtra("name")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement