(FRONT) FRONT (2025)

Using Query and Cursor to read data sequence and fill DataAdapter for RecyclerView

In my Contacts Activity case we use Cursor and Query:



To access data from Contacts:



This is very similar to DAO access in .NET platform. I read data using moveToNext() and store data to Contact object.


We can not directly show ArrayList of ContactData to RecycledView, to show ContactData we need to create ContactsAdapter



That, from one case refer to one data item ContactViewHolder



And in other case refer to Layout for each DataItem.



Contact object created as Parcelable and allow pack selected data and Pass data to new form with Intent and getParcelableExtra




AndroidMosaic context:



Comments ( )
Link to this page: http://www.vb-net.com/AndroidMosaic/Index10.htm
< THANKS ME>