Please give me advice, what is the efficient way to select data from database if I have query like SELECT * FROM order_list WHERE order_number = ? In table I have more entries (in my case) with common order number and I’d like to create List for entries with same order number and then shot it in ListView. I don’t know if it is efficient first select all order numbers and then in foreach loop select and create List<Item> or exists something better. I’ve tried find some example but unsuccessfully. How should I solve this problem? Thank you. I appreciate every help.
Please give me advice, what is the efficient way to select data from database
Share
You can use the same you are thinking like this:
For example:
And in your Activity class:
Hope this will help you.
Thanks