0

I am creating a directory of schools in android application and want to open their details on new page by clicking on it from list view. how should i handle it?

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
sriRohit
  • 27
  • 3

2 Answers2

1

I would recommend to use a RecyclerView. You can find a simple example here.

Aiko West
  • 791
  • 1
  • 10
  • 30
1

make Pojo of the student info and pass it to the next activity using parcelable object

Ajit Dalvi
  • 21
  • 2
  • Would you please elaborate this? I didn't get it – sriRohit Jun 16 '18 at 11:51
  • You have class of the student information implement the parcelable and pass it to the next activity intent.putparcelableextra("KEY","OBJECT"); try this link you will get the idea https://stackoverflow.com/questions/10107442/android-how-to-pass-parcelable-object-to-intent-and-use-getparcelable-method-of – Ajit Dalvi Jun 16 '18 at 14:42