This issue fixed after passing the Activity context instead of applicationContext to the spinnerAdapter.
Simply I changed spinnerAdapter = new SpinnerAdapter(getApplicationContext()); to
spinnerAdapter = new SpinnerAdapter(MainActivity.this);
A REF.