I am new to android. I have made Microsoft's SQL 2014 server connection with JTDS.jar
. I want to create a drop down option menu in my android app that gets the entry from database.
Although, I can fetch the result from database using ResultSet and ResultSetMetaData but I am not sure, How would I show those results onto the dropdown. Also, how would make sure which option in drop down is selected.
As this answer shows how to create a drop down and show to populate the drop down list. What I need to ask is, do I need to store the database results into an array and then feed them to drop down or there is some other way around?