• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps I want to set selection of spinner dynamically from singleton class object

Ahsan Farooq

Lurker
Aug 24, 2020
1
0
I have created a spinner.I set onItemClickListener on spinner and in Listener the selected item position is stored in singleton class.Now I want to set spinner selection on the basis of that position. I debug my app and there is position is available but spinner is not selecting specific value on that position.
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones