Commit 04c229d896fa24dbefb2e58d387d18aaaf329304

Authored by Imanol-Mikel Barba Sabariego
1 parent 05494523

Retoque en el parse de HTMLParser

bin/AndroidManifest.xml 0 → 100644
  1 +<manifest xmlns:android="http://schemas.android.com/apk/res/android"
  2 + package="com.upc.pbe.upcnews"
  3 + android:versionCode="1"
  4 + android:versionName="1.0" >
  5 +
  6 + <uses-sdk
  7 + android:minSdkVersion="8"
  8 + android:targetSdkVersion="15" />
  9 + <uses-permission android:name="android.permission.INTERNET"/>
  10 + <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  11 +
  12 + <application
  13 + android:icon="@drawable/ic_launcher"
  14 + android:label="@string/app_name"
  15 + android:theme="@style/AppTheme" >
  16 + <activity
  17 + android:name=".MainActivity"
  18 + android:label="@string/title_activity_main" >
  19 + <intent-filter>
  20 + <action android:name="android.intent.action.MAIN" />
  21 +
  22 + <category android:name="android.intent.category.LAUNCHER" />
  23 + </intent-filter>
  24 + </activity>
  25 + <activity android:name=".Descarrega"></activity>
  26 + </application>
  27 +
  28 +</manifest>
0 29 \ No newline at end of file
... ...
bin/classes/com/upc/pbe/upcnews/BuildConfig.class 0 → 100644
No preview for this file type
bin/classes/com/upc/pbe/upcnews/Descarrega.class 0 → 100644
No preview for this file type
bin/classes/com/upc/pbe/upcnews/HTMLParser.class deleted
No preview for this file type
bin/classes/com/upc/pbe/upcnews/MainActivity.class 0 → 100644
No preview for this file type
bin/classes/com/upc/pbe/upcnews/Playlist.class renamed to bin/classes/com/upc/pbe/upcnews/R$attr.class
No preview for this file type
bin/classes/com/upc/pbe/upcnews/R$drawable.class 0 → 100644
No preview for this file type
bin/classes/com/upc/pbe/upcnews/R$id.class 0 → 100644
No preview for this file type
bin/classes/com/upc/pbe/upcnews/R$layout.class 0 → 100644
No preview for this file type
bin/classes/com/upc/pbe/upcnews/R$menu.class 0 → 100644
No preview for this file type
bin/classes/com/upc/pbe/upcnews/Parser.class renamed to bin/classes/com/upc/pbe/upcnews/R$string.class
No preview for this file type
bin/classes/com/upc/pbe/upcnews/R$style.class 0 → 100644
No preview for this file type
bin/classes/com/upc/pbe/upcnews/R.class 0 → 100644
No preview for this file type
bin/jarlist.cache deleted
1   -# cache for current jar dependecy. DO NOT EDIT.
2   -# format is <lastModified> <length> <SHA-1> <path>
3   -# Encoding is UTF-8
src/com/upc/pbe/upcnews/HTMLParser.java
... ... @@ -11,7 +11,7 @@ public class HTMLParser {
11 11 this.code = code;
12 12 }
13 13  
14   - public void parsejar(){
  14 + public ArrayList<String> parse(){
15 15 String[] split = code.split("\n");
16 16 for(int i = 0; i < split.length; i++){
17 17 if(split[i].startsWith("<li>")){
... ... @@ -20,6 +20,7 @@ public class HTMLParser {
20 20 }
21 21 }
22 22 }
  23 + return directoris;
23 24 }
24 25  
25 26 }
... ...
src/com/upc/pbe/upcnews/MainActivity.java
... ... @@ -28,7 +28,6 @@ public class MainActivity extends Activity implements OnClickListener {
28 28 showText = (TextView) findViewById(R.id.textViewXml);
29 29 showRoute = (TextView) findViewById(R.id.textViewRoute);
30 30 showRoute.setText("Server: " + url);
31   -
32 31 }
33 32  
34 33 public void onClick(View v) {
... ... @@ -38,8 +37,6 @@ public class MainActivity extends Activity implements OnClickListener {
38 37 Toast.makeText(this, "Download succesfull", Toast.LENGTH_LONG).show();
39 38 CharSequence html = (CharSequence) d.doInBackground();
40 39 showText.setText(html);
41   -
42   -
43 40 }
44 41  
45 42 }
46 43 \ No newline at end of file
... ...