Commit 04d72730b5ec759f114849f4473b421e143d0ae6
1 parent
3b7556d5
--no commit message
Showing
25 changed files
with
28 additions
and
28 deletions
bin/AndroidManifest.xml deleted
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> | ||
29 | \ No newline at end of file | 0 | \ No newline at end of file |
bin/UPC_NEWS_v0.apk deleted
No preview for this file type
bin/classes.dex deleted
No preview for this file type
bin/classes/com/upc/pbe/upcnews/BuildConfig.class deleted
No preview for this file type
bin/classes/com/upc/pbe/upcnews/Descarrega.class deleted
No preview for this file type
bin/classes/com/upc/pbe/upcnews/HTMLParser.class
0 โ 100644
No preview for this file type
bin/classes/com/upc/pbe/upcnews/MainActivity.class deleted
No preview for this file type
bin/classes/com/upc/pbe/upcnews/R$string.class renamed to bin/classes/com/upc/pbe/upcnews/Parser.class
No preview for this file type
bin/classes/com/upc/pbe/upcnews/R$attr.class renamed to bin/classes/com/upc/pbe/upcnews/Playlist.class
No preview for this file type
bin/classes/com/upc/pbe/upcnews/R$drawable.class deleted
No preview for this file type
bin/classes/com/upc/pbe/upcnews/R$id.class deleted
No preview for this file type
bin/classes/com/upc/pbe/upcnews/R$layout.class deleted
No preview for this file type
bin/classes/com/upc/pbe/upcnews/R$menu.class deleted
No preview for this file type
bin/classes/com/upc/pbe/upcnews/R$style.class deleted
No preview for this file type
bin/classes/com/upc/pbe/upcnews/R.class deleted
No preview for this file type
bin/jarlist.cache
0 โ 100644
bin/res/drawable-hdpi/ic_action_search.png deleted
409 Bytes
bin/res/drawable-hdpi/ic_launcher.png deleted
8.33 KB
bin/res/drawable-ldpi/ic_launcher.png deleted
3.07 KB
bin/res/drawable-mdpi/ic_action_search.png deleted
311 Bytes
bin/res/drawable-mdpi/ic_launcher.png deleted
4.54 KB
bin/res/drawable-xhdpi/ic_action_search.png deleted
491 Bytes
bin/res/drawable-xhdpi/ic_launcher.png deleted
12.7 KB
bin/resources.ap_ deleted
No preview for this file type
src/com/upc/pbe/upcnews/HTMLParser.java
0 โ 100644
1 | +package com.upc.pbe.upcnews; | ||
2 | + | ||
3 | +import java.util.ArrayList; | ||
4 | + | ||
5 | +public class HTMLParser { | ||
6 | + | ||
7 | + String code; | ||
8 | + ArrayList<String> directoris; | ||
9 | + | ||
10 | + public HTMLParser(String code){ | ||
11 | + this.code = code; | ||
12 | + } | ||
13 | + | ||
14 | + public void parsejar(){ | ||
15 | + String[] split = code.split("\n"); | ||
16 | + for(int i = 0; i < split.length; i++){ | ||
17 | + if(split[i].startsWith("<li>")){ | ||
18 | + if(split[i].contains("/\"")){ | ||
19 | + directoris.add(split[i].substring(split[i].indexOf('>', 5), split[i].indexOf('<', 5)-1)); | ||
20 | + } | ||
21 | + } | ||
22 | + } | ||
23 | + } | ||
24 | + | ||
25 | +} |