Android simplify
Could you please help me simplify my code ? I've tried to put it in an Async Task but still the application loads the activity really slow . 

These are all the variables : 

    View vw;
    	 ImageView im;
    	 Bitmap bmp; 
         URL url = null; 
         String at="";
         String s="";
         String pag="";
         String aux1="";
         String aux2="";
         ArrayList<String>  pg;
         ArrayList<String>  links;
         ArrayList<String> sbt;
    String q="";
    String tt="";

So , I've put this in doInBackground ()


 	 pag=getPage();
                 
            		aux1=pag.substring(pag.indexOf("le\""),pag.indexOf("</a> </div></div>"));	
            		
            		aux2=pag.substring(pag.indexOf("</span></a><h1><a")+17,pag.indexOf("</a> </div></div>"));
            		pg=title(aux1); // this is a simple crop of the aux1 String
            	
            		links=urls(aux1); // likewise 

            		sbt=subtitle(aux2); // also a crop

And this in the onPostExecute method :

	for(int i=0; i<pg.size(); i++) {
        					
    s = "http://www.golfnews.no/" +links.get(i); // here I create the links to the images
        			TextView fin = new TextView(Activity1.this);
        			TableRow row = new TableRow(Activity1.this);
        			vw = new View(Activity1.this);
        	        im = new ImageView(Activity1.this);
        	        
        			q=pg.get(i);  // here I get a string from the ArrayList
        			tt=sbt.get(i); // likewise
        			
        			
        			
        			
        		      // create a new TableRow
        	        
        	        row.setBackgroundColor(Color.WHITE);
        	        row.setTag(i);
        	        row.setClickable(true);
        	        row.setClickable(true);
        			row.setOnClickListener(new View.OnClickListener() {
        				public void onClick(View view) {//////////// If clicked , we send a string to another activity
        					 
        					 
        					Intent news = new Intent(Activity1.this, com.nextlogic.golfnews.News.class);
        					String nws="http://golfnews.no/nyheter.php?a=";
        					String s =view.getTag().toString();
        					int k = Integer.parseInt(s);
        					String auxiliar=links.get(k);
        					at= auxiliar.substring(auxiliar.indexOf("/a")+2,auxiliar.indexOf("_"));
        					
        					nws += at;
        					String z = nws;
        					Bundle b = new Bundle();
        					b.putString("stiri",z);
        					  news.putExtras(b);
        					  
        						startActivity(news);
        		                //startActivityForResult(myIntent, 0);
        				}
        			});

        	        bmp=getbmp(s); // here I get the image
        	        im.setImageBitmap(bmp); 
        	        vw.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.FILL_PARENT, 1));
        	        vw.setBackgroundColor(Color.LTGRAY);
        	        im.setScaleType(ImageView.ScaleType.CENTER_CROP );
        	        
        	        row.addView(im, new TableRow.LayoutParams(60, 60));
        	      q=titleEdit(q);
        	      tt=subtitleEdit(tt);
 
        	        fin.setText(Html.fromHtml("<b>" + q + "</b>" +  "<br />" + 
        	    	        "<small>" + tt + "</small>"));
        	       row.addView(fin);
        	       tableView.addView(vw); /////////////////////   THE LINES BETWEEN THE ROWS
        	        tableView.addView(row, new TableLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));

I don't know why the application takes so much to load .. About 7-9 seconds..

Android simplify
===

Could you please help me simplify my code ? I've tried to put it in an Async Task but still the application loads the activity really slow . 

These are all the variables : 

    View vw;
    	 ImageView im;
    	 Bitmap bmp; 
         URL url = null; 
         String at="";
         String s="";
         String pag="";
         String aux1="";
         String aux2="";
         ArrayList<String>  pg;
         ArrayList<String>  links;
         ArrayList<String> sbt;
    String q="";
    String tt="";

So , I've put this in doInBackground ()


 	 pag=getPage();
                 
            		aux1=pag.substring(pag.indexOf("le\""),pag.indexOf("</a> </div></div>"));	
            		
            		aux2=pag.substring(pag.indexOf("</span></a><h1><a")+17,pag.indexOf("</a> </div></div>"));
            		pg=title(aux1); // this is a simple crop of the aux1 String
            	
            		links=urls(aux1); // likewise 

            		sbt=subtitle(aux2); // also a crop

And this in the onPostExecute method :

	for(int i=0; i<pg.size(); i++) {
        					
    s = "http://www.golfnews.no/" +links.get(i); // here I create the links to the images
        			TextView fin = new TextView(Activity1.this);
        			TableRow row = new TableRow(Activity1.this);
        			vw = new View(Activity1.this);
        	        im = new ImageView(Activity1.this);
        	        
        			q=pg.get(i);  // here I get a string from the ArrayList
        			tt=sbt.get(i); // likewise
        			
        			
        			
        			
        		      // create a new TableRow
        	        
        	        row.setBackgroundColor(Color.WHITE);
        	        row.setTag(i);
        	        row.setClickable(true);
        	        row.setClickable(true);
        			row.setOnClickListener(new View.OnClickListener() {
        				public void onClick(View view) {//////////// If clicked , we send a string to another activity
        					 
        					 
        					Intent news = new Intent(Activity1.this, com.nextlogic.golfnews.News.class);
        					String nws="http://golfnews.no/nyheter.php?a=";
        					String s =view.getTag().toString();
        					int k = Integer.parseInt(s);
        					String auxiliar=links.get(k);
        					at= auxiliar.substring(auxiliar.indexOf("/a")+2,auxiliar.indexOf("_"));
        					
        					nws += at;
        					String z = nws;
        					Bundle b = new Bundle();
        					b.putString("stiri",z);
        					  news.putExtras(b);
        					  
        						startActivity(news);
        		                //startActivityForResult(myIntent, 0);
        				}
        			});

        	        bmp=getbmp(s); // here I get the image
        	        im.setImageBitmap(bmp); 
        	        vw.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.FILL_PARENT, 1));
        	        vw.setBackgroundColor(Color.LTGRAY);
        	        im.setScaleType(ImageView.ScaleType.CENTER_CROP );
        	        
        	        row.addView(im, new TableRow.LayoutParams(60, 60));
        	      q=titleEdit(q);
        	      tt=subtitleEdit(tt);
 
        	        fin.setText(Html.fromHtml("<b>" + q + "</b>" +  "<br />" + 
        	    	        "<small>" + tt + "</small>"));
        	       row.addView(fin);
        	       tableView.addView(vw); /////////////////////   THE LINES BETWEEN THE ROWS
        	        tableView.addView(row, new TableLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));

I don't know why the application takes so much to load .. About 7-9 seconds..
