|
Erstellt von Jason Manns
vor mehr als 8 Jahre
|
|
|
Kopiert von Jason Manns
vor mehr als 8 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() |
There are no comments, be the first and leave one below:
Möchten Sie mit GoConqr kostenlos Ihre eigenen Karteikarten erstellen? Mehr erfahren.