Android Studio: Passing Variable between Activities
// in 1 activity -> String idValue = "hellow world"; Intent intent = new Intent(getApplicationContext(), SecondActivity.class); intent.putExtra("ID", idValue); startActivity(intent); //in second Activity-> String i = getIntent().getStringExtra("ID"); Alternatif In your current Activity, create a new Intent: String value="Hello world"; Intent i = new Intent(CurrentActivity.this,
| Penerbit | Taratsa |
|---|---|
| Tahun | 2022-04-13 |
| Bahasa | ind |
| Pengenal | bookid: urn:uuid:664f8f8d-5480-54b6-a00b-4d9d1e1080eb |