venkat venkat - 5 months ago 45
Android Question

How to get names from database to my dropdown list in android?

I have one dropdown when i click dropdown option then it will hit database and retrieve the data to my another dropdown list. For ex i have one drop down list with class names as options when i click on class name it will retrieve that class students names into another dropdown list from database. after send those details to the database when click on submit button?

Answer

i used to implement code based on this example for populating spinner based in another spinner selection

http://www.javaknowledge.info/populate-second-spinner-based-on-selection-of-first-spinner/

and for populating spinner from sqlite database i used this sample...please check this link

http://instinctcoder.com/android-studio-spinner-populate-data-sqlite/

my problem is resolved