i am new to android, am trying to store the spinner value to the database, but am getting error while storing it into the database. can any one please help me.
here is my code,
mGender = (Spinner)findViewById(R.id.spinner1);
String gender = mGender.toString();
values.put("gender", gender);
i changed the code, so i can read the spinner value, but when i check my database it is not showing the exact information that is given in the spinner, it is showing something like
android.widget.Spinner@41372738
android.widget.Spinner@41382ae0
for the same values. Can anyone please help me.
thanks in advance
finally i found the answer for this question by going through the different tutorials and samples. the solution for this is:
you have to create a spinner and assign the values in onCreate method. and one more class State for reading the spinner values.
Thank You all….