|
|
Erstellt von Jason Manns
vor etwa 9 Jahre
|
|
|
|
Kopiert von Jason Manns
vor etwa 9 Jahre
|
|
| Frage | Antworten |
| 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() |
Möchten Sie mit GoConqr kostenlos Ihre eigenen Karteikarten erstellen? Mehr erfahren.