How to display particular array of items from a database (Mysql) in a Spinner of Android?
2
-
2Are you referring to SQLite? And your question is unclear, did you display results from a query onto a Spinner? Do you have any code?Anthony Forloney– Anthony Forloney2010-01-30 04:05:43 +00:00Commented Jan 30, 2010 at 4:05
-
This is an exact copy of this question: stackoverflow.com/questions/2153022/…Christopher Orr– Christopher Orr2010-02-02 11:35:02 +00:00Commented Feb 2, 2010 at 11:35
Add a comment
|
1 Answer
Android uses SQLLite, so you could display the data from SqlLite in the spinner. Here is an example of how to do that. Otherwise if you really need to use mysql, you would probably want to set up a web service on a server which queries the mysql database and your app could call the web service to populate the spinner.