How to display particular array of items from a database (SQLServer) in a Spinner of Android?
How to display particular array of i开发者_运维技巧tems from a database (Mysql) in a Spinner of Android?
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.
精彩评论