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 --- /dev/null +++ b/bin/classes/com/upc/pbe/upcnews/BuildConfig.class 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 --- /dev/null +++ b/bin/classes/com/upc/pbe/upcnews/Descarrega.class 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 --- a/bin/classes/com/upc/pbe/upcnews/HTMLParser.class +++ /dev/null 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 --- /dev/null +++ b/bin/classes/com/upc/pbe/upcnews/MainActivity.class diff --git a/bin/classes/com/upc/pbe/upcnews/Playlist.class b/bin/classes/com/upc/pbe/upcnews/R$attr.class index a7b9d4b..ff80340 100644 --- a/bin/classes/com/upc/pbe/upcnews/Playlist.class +++ b/bin/classes/com/upc/pbe/upcnews/R$attr.class 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 --- /dev/null +++ b/bin/classes/com/upc/pbe/upcnews/R$drawable.class 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 --- /dev/null +++ b/bin/classes/com/upc/pbe/upcnews/R$id.class 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 --- /dev/null +++ b/bin/classes/com/upc/pbe/upcnews/R$layout.class 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 --- /dev/null +++ b/bin/classes/com/upc/pbe/upcnews/R$menu.class diff --git a/bin/classes/com/upc/pbe/upcnews/Parser.class b/bin/classes/com/upc/pbe/upcnews/R$string.class index 4619d47..6d151f4 100644 --- a/bin/classes/com/upc/pbe/upcnews/Parser.class +++ b/bin/classes/com/upc/pbe/upcnews/R$string.class 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 --- /dev/null +++ b/bin/classes/com/upc/pbe/upcnews/R$style.class 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 --- /dev/null +++ b/bin/classes/com/upc/pbe/upcnews/R.class 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