From 04c229d896fa24dbefb2e58d387d18aaaf329304 Mon Sep 17 00:00:00 2001 From: Equip de Desenvolupadors de PBE Date: Wed, 7 Nov 2012 23:30:37 +0000 Subject: [PATCH] Retoque en el parse de HTMLParser --- bin/AndroidManifest.xml | 28 ++++++++++++++++++++++++++++ bin/classes/com/upc/pbe/upcnews/BuildConfig.class | Bin 0 -> 347 bytes bin/classes/com/upc/pbe/upcnews/Descarrega.class | Bin 0 -> 3268 bytes bin/classes/com/upc/pbe/upcnews/HTMLParser.class | Bin 1074 -> 0 bytes bin/classes/com/upc/pbe/upcnews/MainActivity.class | Bin 0 -> 1866 bytes bin/classes/com/upc/pbe/upcnews/Parser.class | Bin 991 -> 0 bytes bin/classes/com/upc/pbe/upcnews/Playlist.class | Bin 289 -> 0 bytes bin/classes/com/upc/pbe/upcnews/R$attr.class | Bin 0 -> 343 bytes bin/classes/com/upc/pbe/upcnews/R$drawable.class | Bin 0 -> 450 bytes bin/classes/com/upc/pbe/upcnews/R$id.class | Bin 0 -> 457 bytes bin/classes/com/upc/pbe/upcnews/R$layout.class | Bin 0 -> 406 bytes bin/classes/com/upc/pbe/upcnews/R$menu.class | Bin 0 -> 400 bytes bin/classes/com/upc/pbe/upcnews/R$string.class | Bin 0 -> 579 bytes bin/classes/com/upc/pbe/upcnews/R$style.class | Bin 0 -> 398 bytes bin/classes/com/upc/pbe/upcnews/R.class | Bin 0 -> 634 bytes bin/jarlist.cache | 3 --- src/com/upc/pbe/upcnews/HTMLParser.java | 3 ++- src/com/upc/pbe/upcnews/MainActivity.java | 3 --- 18 files changed, 30 insertions(+), 7 deletions(-) create mode 100644 bin/AndroidManifest.xml create mode 100644 bin/classes/com/upc/pbe/upcnews/BuildConfig.class create mode 100644 bin/classes/com/upc/pbe/upcnews/Descarrega.class delete mode 100644 bin/classes/com/upc/pbe/upcnews/HTMLParser.class create mode 100644 bin/classes/com/upc/pbe/upcnews/MainActivity.class delete mode 100644 bin/classes/com/upc/pbe/upcnews/Parser.class delete mode 100644 bin/classes/com/upc/pbe/upcnews/Playlist.class create mode 100644 bin/classes/com/upc/pbe/upcnews/R$attr.class create mode 100644 bin/classes/com/upc/pbe/upcnews/R$drawable.class create mode 100644 bin/classes/com/upc/pbe/upcnews/R$id.class create mode 100644 bin/classes/com/upc/pbe/upcnews/R$layout.class create mode 100644 bin/classes/com/upc/pbe/upcnews/R$menu.class create mode 100644 bin/classes/com/upc/pbe/upcnews/R$string.class create mode 100644 bin/classes/com/upc/pbe/upcnews/R$style.class create mode 100644 bin/classes/com/upc/pbe/upcnews/R.class delete mode 100644 bin/jarlist.cache diff --git a/bin/AndroidManifest.xml b/bin/AndroidManifest.xml new file mode 100644 index 0000000..48fa7e5 --- /dev/null +++ b/bin/AndroidManifest.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/bin/classes/com/upc/pbe/upcnews/BuildConfig.class b/bin/classes/com/upc/pbe/upcnews/BuildConfig.class new file mode 100644 index 0000000..200bf25 Binary files /dev/null and b/bin/classes/com/upc/pbe/upcnews/BuildConfig.class differ diff --git a/bin/classes/com/upc/pbe/upcnews/Descarrega.class b/bin/classes/com/upc/pbe/upcnews/Descarrega.class new file mode 100644 index 0000000..89e5c71 Binary files /dev/null and b/bin/classes/com/upc/pbe/upcnews/Descarrega.class differ diff --git a/bin/classes/com/upc/pbe/upcnews/HTMLParser.class b/bin/classes/com/upc/pbe/upcnews/HTMLParser.class deleted file mode 100644 index 48859d5..0000000 Binary files a/bin/classes/com/upc/pbe/upcnews/HTMLParser.class and /dev/null differ diff --git a/bin/classes/com/upc/pbe/upcnews/MainActivity.class b/bin/classes/com/upc/pbe/upcnews/MainActivity.class new file mode 100644 index 0000000..506d76d Binary files /dev/null and b/bin/classes/com/upc/pbe/upcnews/MainActivity.class differ diff --git a/bin/classes/com/upc/pbe/upcnews/Parser.class b/bin/classes/com/upc/pbe/upcnews/Parser.class deleted file mode 100644 index 4619d47..0000000 Binary files a/bin/classes/com/upc/pbe/upcnews/Parser.class and /dev/null differ diff --git a/bin/classes/com/upc/pbe/upcnews/Playlist.class b/bin/classes/com/upc/pbe/upcnews/Playlist.class deleted file mode 100644 index a7b9d4b..0000000 Binary files a/bin/classes/com/upc/pbe/upcnews/Playlist.class and /dev/null differ diff --git a/bin/classes/com/upc/pbe/upcnews/R$attr.class b/bin/classes/com/upc/pbe/upcnews/R$attr.class new file mode 100644 index 0000000..ff80340 Binary files /dev/null and b/bin/classes/com/upc/pbe/upcnews/R$attr.class differ diff --git a/bin/classes/com/upc/pbe/upcnews/R$drawable.class b/bin/classes/com/upc/pbe/upcnews/R$drawable.class new file mode 100644 index 0000000..91e8909 Binary files /dev/null and b/bin/classes/com/upc/pbe/upcnews/R$drawable.class differ diff --git a/bin/classes/com/upc/pbe/upcnews/R$id.class b/bin/classes/com/upc/pbe/upcnews/R$id.class new file mode 100644 index 0000000..88f62b3 Binary files /dev/null and b/bin/classes/com/upc/pbe/upcnews/R$id.class differ diff --git a/bin/classes/com/upc/pbe/upcnews/R$layout.class b/bin/classes/com/upc/pbe/upcnews/R$layout.class new file mode 100644 index 0000000..a3c5c3b Binary files /dev/null and b/bin/classes/com/upc/pbe/upcnews/R$layout.class differ diff --git a/bin/classes/com/upc/pbe/upcnews/R$menu.class b/bin/classes/com/upc/pbe/upcnews/R$menu.class new file mode 100644 index 0000000..334a594 Binary files /dev/null and b/bin/classes/com/upc/pbe/upcnews/R$menu.class differ diff --git a/bin/classes/com/upc/pbe/upcnews/R$string.class b/bin/classes/com/upc/pbe/upcnews/R$string.class new file mode 100644 index 0000000..6d151f4 Binary files /dev/null and b/bin/classes/com/upc/pbe/upcnews/R$string.class differ diff --git a/bin/classes/com/upc/pbe/upcnews/R$style.class b/bin/classes/com/upc/pbe/upcnews/R$style.class new file mode 100644 index 0000000..1545f6b Binary files /dev/null and b/bin/classes/com/upc/pbe/upcnews/R$style.class differ diff --git a/bin/classes/com/upc/pbe/upcnews/R.class b/bin/classes/com/upc/pbe/upcnews/R.class new file mode 100644 index 0000000..2188db5 Binary files /dev/null and b/bin/classes/com/upc/pbe/upcnews/R.class differ diff --git a/bin/jarlist.cache b/bin/jarlist.cache deleted file mode 100644 index 1b5ec3f..0000000 --- a/bin/jarlist.cache +++ /dev/null @@ -1,3 +0,0 @@ -# cache for current jar dependecy. DO NOT EDIT. -# format is -# Encoding is UTF-8 diff --git a/src/com/upc/pbe/upcnews/HTMLParser.java b/src/com/upc/pbe/upcnews/HTMLParser.java index 57cc140..246cab8 100644 --- a/src/com/upc/pbe/upcnews/HTMLParser.java +++ b/src/com/upc/pbe/upcnews/HTMLParser.java @@ -11,7 +11,7 @@ public class HTMLParser { this.code = code; } - public void parsejar(){ + public ArrayList parse(){ String[] split = code.split("\n"); for(int i = 0; i < split.length; i++){ if(split[i].startsWith("
  • ")){ @@ -20,6 +20,7 @@ public class HTMLParser { } } } + return directoris; } } diff --git a/src/com/upc/pbe/upcnews/MainActivity.java b/src/com/upc/pbe/upcnews/MainActivity.java index 7fe54dd..01f787d 100644 --- a/src/com/upc/pbe/upcnews/MainActivity.java +++ b/src/com/upc/pbe/upcnews/MainActivity.java @@ -28,7 +28,6 @@ public class MainActivity extends Activity implements OnClickListener { showText = (TextView) findViewById(R.id.textViewXml); showRoute = (TextView) findViewById(R.id.textViewRoute); showRoute.setText("Server: " + url); - } public void onClick(View v) { @@ -38,8 +37,6 @@ public class MainActivity extends Activity implements OnClickListener { Toast.makeText(this, "Download succesfull", Toast.LENGTH_LONG).show(); CharSequence html = (CharSequence) d.doInBackground(); showText.setText(html); - - } } \ No newline at end of file -- libgit2 0.22.2