I have used ListFragment in that i have used below code

```
public class TestListFragment extends ListFragment {

@Override
public void onActivityCreated(Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);

    ArrayAdapter<String> adapter = new ArrayAdapter<String>(getActivity(),R.layout.list_column,
            R.layout.list_column, R.id.text, createDataList(1000));
    setListAdapter(adapter);
}

```

}

but i am getting stuck where The constructor ArrayAdapter(FragmentActivity, int, int, int, List) is undefined

i have searched it and found [Getting a constructor error with ArrayAdapter in a ListFragment on Android](https://stackoverflow.com/questions/11439392/getting-a-constructor-error-with-arrayadapter-in-a-listfragment-on-android) same problem in that it is suggesting me that use getActivity() and i have used that but still eclipse don't allow me