|
Criado por Jason Manns
mais de 8 anos atrás
|
|
|
Copiado por Jason Manns
mais de 8 anos atrás
|
|
Questão | Responda |
Write the code to pass a username from one activity to another & display it in a toast. | // sender Intent intent = new Intent(this, OtherActivity.class); intent.putExtra("username", "Bob"); startActivity(intent); // receiver String username = getIntent().getExtraString("username"); Toast.makeText(this, username, Toast.LENGTH_SHORT).show() |
There are no comments, be the first and leave one below:
Quer criar seus próprios Flashcards gratuitos com GoConqr? Saiba mais.