I've attached the code I am using.
Spinner edittext1=(Spinner )findViewById(R.id.spinner1); RatingBar edittext2=(RatingBar )findViewById(R.id.ratingBar1); EditText edittext3=(EditText )findViewById(R.id.txtComment); food=edittext1.getContext().toString(); rating=edittext2.getContext().toString(); comment=edittext3.getText().toString(); db.execSQL("INSERT INTO Feedback VALUES('"+food+"','"+rating+"', '"+comment+"');");
When I then check to see what has been entered, only the EditText (txtComment) has been entered correctly.
The Spinner and RatingBar enter something to do with the file (i.e. [email protected])
I'm not sure whether the problem exists when I'm trying to get the values and store them into edittext1 and edittext2 or when i try to get the .getContext of each.
This post has been edited by James1992: 12 February 2014 - 08:38 AM