title: setListAdapter not working for fragment? any alternatives
body: <pre><code>    protected void onPostExecute(String file_url) {
          // dismiss the dialog after getting all products
          pDialog.dismiss();
          // updating UI from Background Thread
          getActivity().runOnUiThread(new Runnable() {
              public void run() {
                  /**
                   * Updating parsed JSON data into ListView
                   * */
  
  
                  ListAdapter adapter = new SimpleAdapter(
                          getActivity(), inboxList,
                          R.layout.inbox_list_item, new String[] { TAG_LINK, TAG_SUBJECT },
                          new int[] { R.id.link, R.id.subject });
                  // updating listview
                  lv.setListAdapter(adapter);
  
                              lv.setOnItemClickListener(new OnItemClickListener() {
  
                      @Override
                      public void onItemClick(AdapterView&lt;?&gt; parent, View view,
                              int position, long id) {
  
                          Toast.makeText(getActivity(), 
                                  "You clicked on feed "+position, Toast.LENGTH_LONG).show();
  
  
  
                      }
  
                  });
  
              }
          });
  
      }
  </code></pre>
  
  <p>Im trying to get a list view in a fragment activity. 
  This list view is a parsed from JSON objects.
  This code runs in a fragment. However, setlistadapter gives an error. Any alternatives for setlistadapter and how to implement it.
  Thank you.</p>