“Daftar Lulus ke Intent di Android Java” Kode Jawaban

Daftar Lulus ke Intent di Android Java

First, make the class of the list implement Serializable.

public class Object implements Serializable{}
Then you can just cast the list to (Serializable). Like so:

List<Object> list = new ArrayList<Object>();
myIntent.putExtra("LIST", (Serializable) list);
And to retrieve the list you do:

Intent i = getIntent();
list = (List<Object>) i.getSerializableExtra("LIST");
Mobile Star

Daftar Lulus ke Intent di Android Java

Intent intent = new Intent(getApplicationContext(),YourActivity.class);
Bundle bundle = new Bundle();
bundle.putParcelable("data", sharedBookingObject);
intent.putExtras(bundle);
startActivity(intent);
Mobile Star

Jawaban yang mirip dengan “Daftar Lulus ke Intent di Android Java”

Pertanyaan yang mirip dengan “Daftar Lulus ke Intent di Android Java”

Lebih banyak jawaban terkait untuk “Daftar Lulus ke Intent di Android Java” di Java

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya