Commit 8bbdb632b6038aaf9da71da9ddbec1bcbfd8e322
1 parent
97a606f0
--no commit message
Showing
3 changed files
with
7 additions
and
1 deletions
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,7 +13,7 @@ import android.widget.Toast; | ||
13 | public class MainActivity extends Activity implements OnClickListener { | 13 | public class MainActivity extends Activity implements OnClickListener { |
14 | final static String TAG = "Main"; | 14 | final static String TAG = "Main"; |
15 | Button buttonDescarrega; | 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 | String file = "ejemplo.xml"; | 17 | String file = "ejemplo.xml"; |
18 | String folder = "C:\\Users\\Usuario\\Downloads\\"; | 18 | String folder = "C:\\Users\\Usuario\\Downloads\\"; |
19 | TextView showText, showRoute; | 19 | TextView showText, showRoute; |
@@ -36,7 +36,13 @@ public class MainActivity extends Activity implements OnClickListener { | @@ -36,7 +36,13 @@ public class MainActivity extends Activity implements OnClickListener { | ||
36 | Descarrega d = new Descarrega(url, file, folder); | 36 | Descarrega d = new Descarrega(url, file, folder); |
37 | Toast.makeText(this, "Download succesfull", Toast.LENGTH_LONG).show(); | 37 | Toast.makeText(this, "Download succesfull", Toast.LENGTH_LONG).show(); |
38 | CharSequence html = (CharSequence) d.doInBackground(); | 38 | CharSequence html = (CharSequence) d.doInBackground(); |
39 | + Log.d(TAG, (String) html); | ||
39 | showText.setText(html); | 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 | \ No newline at end of file | 49 | \ No newline at end of file |