@@ -0,0 +1,2065 @@
+package com.rss;%0A%0Aimport java.util.List;%0A%0Aimport com.data.CategoryAdapter;%0Aimport com.models.RssItems;%0Aimport com.utils.RssParser;%0Aimport com.utils.Variable;%0A%0Aimport android.app.ListActivity;%0Aimport android.app.ProgressDialog;%0Aimport android.content.Intent;%0Aimport android.os.AsyncTask;%0Aimport android.os.Bundle;%0Aimport android.view.View;%0Aimport android.widget.ListView;%0A%0Apublic class category_activity extends ListActivity%7B%0A%0A%09private int paper;%0A%09private ProgressDialog dialog;%0A%09@Override%0A%09protected void onCreate(Bundle savedInstanceState) %7B%0A%09%09super.onCreate(savedInstanceState);%0A%09%09Bundle bl=getIntent().getExtras();%0A%09%09paper=bl.getInt(Variable.PAPER);%0A%09%09setTitle(Variable.Papper%5Bpaper%5D);%0A%09%09CategoryAdapter adapter=new CategoryAdapter(this,Variable.Icon%5Bpaper%5D,Variable.CATEGORY%5Bpaper%5D);%0A%09%09setListAdapter(adapter);%0A%09%7D%0A%09@Override%0A%09protected void onListItemClick(ListView l, View v, int position, long id) %7B%0A%09%09super.onListItemClick(l, v, position, id);%0A%09%09int key=paper*1000+position;%0A%09%09if(%09Variable.newMap.get(key)==null)%0A%09%09%7B%0A%09%09%09dialog=ProgressDialog.show(category_activity.this,%22%22, %22Loading...%22+Variable.CATEGORY%5Bpaper%5D%5Bposition%5D);%0A%09%09%09new categoryAsynTask().execute(position);%0A%09%09%7D%0A%09%09else%0A%09%09%7B%0A%09%09%09Intent inten=new Intent(%22com.rss.LISTRSS%22);%0A%09%09%09inten.putExtra(Variable.PAPER, paper);%0A%09%09%09inten.putExtra(Variable.CATEGORIES, position);%0A%09%09%09startActivity(inten);%0A%09%09%7D%0A%09%7D%0A%09class categoryAsynTask extends AsyncTask%3CInteger, Void, Void%3E%0A%09%7B%0A       private int position;%0A%09%09@Override%0A%09%09protected Void doInBackground(Integer... params) %7B%0A%09%09%09position=params%5B0%5D;%0A%09%09%09int key=paper*1000+params%5B0%5D;%0A%09%09%09RssParser rssp=new RssParser();%0A%09%09%09List%3CRssItems%3E items=rssp.getListitem(Variable.LINK%5Bpaper%5D%5Bposition%5D);%0A%09%09%09Variable.newMap.put(key, items);%0A%09%09%09return null;%0A%09%09%7D%0A%0A%09%09@Override%0A%09%09protected void onPostExecute(Void result) %7B%0A%09%09%09if(dialog!=null)%0A%09%09%09%7B%0A%09%09%09%09dialog.dismiss();%0A%09%09%09%7D%0A%09%09%09Intent inten=new Intent(%22com.rss.LISTRSS%22);%0A%09%09%09inten.putExtra(Variable.PAPER, paper);%0A%09%09%09inten.putExtra(Variable.CATEGORIES, position);%0A%09%09%09startActivity(inten);%0A%09%09%09super.onPostExecute(result);%0A%09%09%7D%0A%09%09%0A%09%7D%0A%7D%0A%09%0A%0A

Create category_activity.java