how to add listview in tab fragment
<p>I created three fragments to show on my main activity. This is one of the three fragment activity :</p>

<pre><code>public static class Fragment1 extends Fragment {
    /**
     * The fragment argument representing the section number for this
     * fragment.
     */
    String[] values=new String[]{"India", "java", "c++","Ad.Java", "Linux", "Unix"};
    public Fragment1() {
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
        // Create a new TextView and set its text to the fragment's section
        // number argument value.
        View v = inflater.inflate(R.layout.center, null);
        return v;
    }
}
</code></pre>

<p>I want to show a listView in this fragment. I tried to use this code inside <code>onCreateView()</code> method :</p>

<pre><code>ArrayAdapter&lt;String&gt; adapter=new ArrayAdapter&lt;String&gt;(Main.this,android.R.layout.simple_list_item_1,values);
        setListAdapter(adapter);
</code></pre>

<p>but it shows error.. How to do this ?</p>
