Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In Activity1:
- Intent intent = new Intent(add_team.this, DisplayTeam.class);
- intent.putExtra("TEAM", id);
- startActivity(intent);
- In Activity2:
- long id = getIntent().getLongExtra("TEAM", 0l);
- DatabaseHelper db = new DatabaseHelper(this);
- team = db.getTeam(id);
Add Comment
Please, Sign In to add comment