I\'ve been trying to update my spinner in android dynamically but nothing I try has been working.
This is the following code I\'m using to update the spinner.
When you have data changed in your list and when you want to update the spinner then Create a new object of the adapter and set that adapter to the spinner. It will work sure. Best of luck.
When you have data changed in your list and when you want to update the spinner then
Create a new object of the adapter and set that adapter to the spinner. It will work sure.
Best of luck.
Edit: Also you need to call notifyDataSetChanged() on the adapter.