Skip to content
Advertisement

Tag: android-spinner

Android topoche searchable spinner cannot cast error [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago. Improve this question Inconvertible types; cannot cast ‘android.view.View’ to ‘com.toptoche.searchablespinnerlibrary.SearchableSpinner’ Answer Spinner 1 is assigned to the wrong thing you have it assigned as a View not a

Send spinner data to database

I am trying to send data to database from a spinner I initialize the database like this SPINNER + ” TYPE “; And in insert data method I put it as Type spinner but this line gives me an error contentValues.put(SPINNER, spinner); what should I put there instead of put Answer You are trying to save a spinner object in

Advertisement