Android Spinner not showing selected item

This is related to Android Spinner:
Spinner not showing the selected item when using online database is the problem i faced
but after a little try and searching the internet i figured out the solution.
The problem is arraylist is an empty one when the class is initiated and then on adding data from the
online database the arraylist is populated.
The mistake i did is not notifying the changes to adapter.
By notifying the adapter that data set changed my problem solved.

Comments

Popular posts from this blog

How to set text for a TextView in Android using Android Studio

Download Aarogya Setu Android || Corona || India

Compromising Gmail Password is way dangerous than we think!