1

Applying Adapter to Spinner causes NullPointerException?

view story
linux-howto

http://stackoverflow.com – I have a basic Android Application with 2 Fragments. I am trying to fill a Spinner in one of the Fragments with some String. Here is my method (BTW, this all works if I comment out the whole Try statement in the onCreate. public class RadarSelectionFragment extends Fragment { /** * The fragment argument representing the section number for this * fragment. */ public static final String ARG_SECTION_NUMBER = "section_number"; public RadarSelectionFragment() { } @Override public final View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle (HowTos)