I have implemented the spinner by populating the array list through database.I can get and show the array list in my spinner array adapter but if I select the item in spinne
For me the problem is that I was using getApplicationContext(). When I replace getApplicationContext() with this it works fine.
getApplicationContext()
this
ArrayAdapter<*> adapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_item, documentsCategories);