1

how to populate Android spinner with data from mysql database

view story
linux-howto

http://stackoverflow.com – i'm trying to retrieve some data from mysql database in order to populate the spinner with that data. I managed to insert the data in spinner to mysql database but when i try to retrieve back it's showing in Logcat that spinner is null! I searched on the web but i couldn't find the solution to my issue. here is java code for retrieving data from mysql database: private static final String TAG_FACULTY_NAME = "faculty_name"; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.editactivity); //Connected to XML file for (HowTos)