I am trying to parse an rss feed and since i'm a beginner in android i cannot find a way to do this through a fragment..
This is the activity i want to convert into a fragment

```
public class Clients extends Activity {
private Clients local;

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_my);

    local = this;

    GetRSSDataTask task = new GetRSSDataTask();

    task.execute("http://www.itcuties.com/feed/");

    Log.d("ITCRssReader", Thread.currentThread().getName());
}

private class GetRSSDataTask extends AsyncTask<String, Void, List<RssItem> > {
    @Override
    protected List<RssItem> doInBackground(String... urls) {

        Log.d("ITCRssReader", Thread.currentThread().getName());

        try {
            RssReader rssReader = new RssReader(urls[0]);

            return rssReader.getItems();

        } catch (Exception e) {
            Log.e("ITCRssReader", e.getMessage());
        }

        return null;
    }

    @Override
    protected void onPostExecute(List<RssItem> result) {

        ListView itcItems = (ListView) findViewById(R.id.listView);

        ArrayAdapter<RssItem> adapter = new ArrayAdapter<RssItem>(local,android.R.layout.simple_list_item_1,result);
          itcItems.setAdapter(adapter);

        itcItems.setOnItemClickListener(new ListListener(result, local));
    }
}
}

```

I already have tried to convert it but the onItemClick is getting some errors.

```
public void onItemClick(AdapterView parent, View view, int pos, long id) {
    Intent intent = new Intent(activity, Clients.class);
    intent.putExtra("description", listItems.get(pos).getLink());
    activity.startActivity(intent);
  }

```

Can someone please help me???