schywalker
Lurker
I am trying to populate my gridview with data from sqlite query . In my case the number of columns is fixed, but the data for each row is a new query every time. I have seen tutorials where everything is stored into an array and then used and adapter to display in a gridview. Can I do something to only save each row data in an array and keep adding to the gridview display, instead of saving all the rows in a list array?
My columns have different tourist places and my rows are names of restaurants and I fill the rest of the grids with the distances in between them. Each row value has to be queried from another database and then be displayed after the header (names of tourist places ) has been displayed. It is like a table basically.
All the tutorials I have seen have a list array defined in resource file or simply add the items and then set adapter. In my case , I cannot add all the data to an array as it will take a lot of memory in my opinion. Any suggestions will be helpful.
My columns have different tourist places and my rows are names of restaurants and I fill the rest of the grids with the distances in between them. Each row value has to be queried from another database and then be displayed after the header (names of tourist places ) has been displayed. It is like a table basically.
All the tutorials I have seen have a list array defined in resource file or simply add the items and then set adapter. In my case , I cannot add all the data to an array as it will take a lot of memory in my opinion. Any suggestions will be helpful.