Commit 8bbdb632b6038aaf9da71da9ddbec1bcbfd8e322

Authored by Imanol-Mikel Barba Sabariego
1 parent 97a606f0

--no commit message

bin/classes.dex
No preview for this file type
bin/resources.ap_
No preview for this file type
src/com/upc/pbe/upcnews/MainActivity.java
... ... @@ -13,7 +13,7 @@ import android.widget.Toast;
13 13 public class MainActivity extends Activity implements OnClickListener {
14 14 final static String TAG = "Main";
15 15 Button buttonDescarrega;
16   - String url = "http://www.google.es";
  16 + String url = "http://soft0.upc.edu/~francesc/ast/"; //es un server del profe de AST xd
17 17 String file = "ejemplo.xml";
18 18 String folder = "C:\\Users\\Usuario\\Downloads\\";
19 19 TextView showText, showRoute;
... ... @@ -36,7 +36,13 @@ public class MainActivity extends Activity implements OnClickListener {
36 36 Descarrega d = new Descarrega(url, file, folder);
37 37 Toast.makeText(this, "Download succesfull", Toast.LENGTH_LONG).show();
38 38 CharSequence html = (CharSequence) d.doInBackground();
  39 + Log.d(TAG, (String) html);
39 40 showText.setText(html);
  41 +
  42 + //HTMLParser pars = new HTMLParser((String) html);
  43 + //ArrayList<String> directoris = pars.parse();
  44 + //showText.setText((CharSequence) directoris);
  45 +
40 46 }
41 47  
42 48 }
43 49 \ No newline at end of file
... ...