Getting A Constructor Error With Arrayadapter In A Listfragment On Android
Here's my code. I'm getting the error The constructor ArrayAdapter(MainFragment, int, String[]) is undefined on ArraryAdapter. How do I populate the listView1 with th
Solution 1:
Fragments are not context objects. You need to pass the Activity object (Fragment.getActivity()) as first argument instead.
Post a Comment for "Getting A Constructor Error With Arrayadapter In A Listfragment On Android"