Hi,
I'm coding a project that has a class that is called Course, and I wanted to implement a way for a user in my application to search for courses. To do this, I've set up the retrieval from a database for courses. However, I'm currently stuck in figuring out how to display my objects into a ListView and then retrieving the object once a user selects one and clicks a button.
From what I've googled online, theres only solutions for displaying an object inside a list which doesn't solve the latter of my problem, and utilising an ArrayAdaptor to convert the objects into something recognisable for a list. However, the second solution I couldn't figure out how to extend the ArrayAdapter, and all the online guides seemed to be tailored for Android development rather than just a desktop application.
So, are there any simpler solutions to setting and retrieving a class object in a listview? And if the ArrayAdapter is my only solution, could someone help explain how it works, as I'm currently lost with the guides.