Created
September 20, 2016 03:18
-
-
Save lucas-marciano/94fa9b25c4936a0a900b9202f701d05e to your computer and use it in GitHub Desktop.
Exemplo de uso do activity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ArrayList<Pessoa> pessoas = new ArrayList<Pessoa>(); | |
| pessoas.add(new Pessoa(1, "Lucas")); | |
| pessoas.add(new Pessoa(2, "Jose")); | |
| Intent it = new Intent(this, Tela2Activity.class); | |
| // Caso queira passar a lista toda use | |
| it.putExtra("pessoas", pessoas); | |
| // Caso queira passar apenas um objeto | |
| it.putExtra("pessoa", pessoas.get(0)); | |
| startActivity(it); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment