• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps [Resolved] Using ArrayAdapter to display SQLite query in multiple textviews

Yathushan

Well-Known Member
Jan 3, 2010
205
7
London
Hi,

I am attempting to create a simple card game and have reached a road when it comes to displaying the data from a single row into multiple textViews.
My current thought process is to:
  1. Using a databasehelper class to select a row within the table
  2. Pass the results through a cursor and save the data to a Card class
  3. I then attempt to parse the class through an arrayadapter
  4. I try to display the arrayadapter in the final class.

I have included the classes I used below via PasteBin:
If someone would either be able to tell me where I am going wrong or what tutorials to look at to help me improve code myself, I would be very grateful.
Thank you all.
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones