Commit e7ab16fee172a5f00d16fbc599ea1575103d42ae
1 parent
ed8b2172
--no commit message
Showing
2 changed files
with
103 additions
and
110 deletions
gen/com/upc/pbe/upcnews/R.java
1 | -/* AUTO-GENERATED FILE. DO NOT MODIFY. | |
2 | - * | |
3 | - * This class was automatically generated by the | |
4 | - * aapt tool from the resource data it found. It | |
5 | - * should not be modified by hand. | |
6 | - */ | |
7 | - | |
8 | -package com.upc.pbe.upcnews; | |
9 | - | |
10 | -public final class R { | |
11 | - public static final class attr { | |
12 | - } | |
13 | - public static final class color { | |
14 | - public static final int Black=0x7f050002; | |
15 | - public static final int Blue=0x7f050004; | |
16 | - public static final int BlueAndroid=0x7f050005; | |
17 | - public static final int Gay=0x7f050007; | |
18 | - public static final int Gray=0x7f05000a; | |
19 | - public static final int Green=0x7f050009; | |
20 | - public static final int Orange=0x7f050003; | |
21 | - public static final int Red=0x7f050008; | |
22 | - public static final int White=0x7f050006; | |
23 | - public static final int Whyte_POwaH=0x7f050001; | |
24 | - public static final int backgroundmain=0x7f050000; | |
25 | - } | |
26 | - public static final class dimen { | |
27 | - public static final int TitleSize=0x7f060000; | |
28 | - public static final int lesize=0x7f060001; | |
29 | - } | |
30 | - public static final class drawable { | |
31 | - public static final int ic_action_search=0x7f020000; | |
32 | - public static final int ic_launcher=0x7f020001; | |
33 | - public static final int ic_ledarklogo=0x7f020002; | |
34 | - public static final int ic_menu_name=0x7f020003; | |
35 | - public static final int ic_startbutton=0x7f020004; | |
36 | - public static final int selectedonlist=0x7f020005; | |
37 | - public static final int selectedonlist2=0x7f020006; | |
38 | - public static final int startbuttontoggle=0x7f020007; | |
39 | - } | |
40 | - public static final class id { | |
41 | - public static final int LinearLayout1=0x7f0a0001; | |
42 | - public static final int RelativeLayout1=0x7f0a0006; | |
43 | - public static final int button=0x7f0a0007; | |
44 | - public static final int itemhelp=0x7f0a000d; | |
45 | - public static final int itemprefs=0x7f0a000c; | |
46 | - public static final int listView1=0x7f0a0003; | |
47 | - public static final int menu_settings=0x7f0a000b; | |
48 | - public static final int rowTextView=0x7f0a000a; | |
49 | - public static final int textView1=0x7f0a0004; | |
50 | - public static final int textView2=0x7f0a0005; | |
51 | - public static final int textViewTitle=0x7f0a0002; | |
52 | - public static final int textViewUrl=0x7f0a0009; | |
53 | - public static final int textViewXml=0x7f0a0008; | |
54 | - public static final int videoView1=0x7f0a0000; | |
55 | - } | |
56 | - public static final class layout { | |
57 | - public static final int activity_video=0x7f030000; | |
58 | - public static final int dirs=0x7f030001; | |
59 | - public static final int help=0x7f030002; | |
60 | - public static final int main_activity=0x7f030003; | |
61 | - public static final int rowlayout=0x7f030004; | |
62 | - } | |
63 | - public static final class menu { | |
64 | - public static final int activity_main=0x7f090000; | |
65 | - public static final int activity_video=0x7f090001; | |
66 | - public static final int menu=0x7f090002; | |
67 | - } | |
68 | - public static final class string { | |
69 | - public static final int app_name=0x7f070000; | |
70 | - public static final int button=0x7f07000c; | |
71 | - public static final int button1=0x7f07000d; | |
72 | - public static final int defaultURL=0x7f070013; | |
73 | - public static final int desc=0x7f070009; | |
74 | - public static final int descarregar=0x7f070003; | |
75 | - public static final int dir=0x7f07000a; | |
76 | - public static final int directoris=0x7f07000b; | |
77 | - public static final int hello_world=0x7f070010; | |
78 | - public static final int help=0x7f070008; | |
79 | - public static final int helpText=0x7f070012; | |
80 | - public static final int hint=0x7f070004; | |
81 | - public static final int menu_settings=0x7f070001; | |
82 | - public static final int prefs=0x7f070007; | |
83 | - public static final int startbuttondescription=0x7f07000f; | |
84 | - public static final int title=0x7f07000e; | |
85 | - public static final int title_activity_main=0x7f070002; | |
86 | - public static final int title_activity_video=0x7f070011; | |
87 | - public static final int url=0x7f070005; | |
88 | - public static final int urlhint=0x7f070006; | |
89 | - } | |
90 | - public static final class style { | |
91 | - public static final int AppTheme=0x7f080000; | |
92 | - public static final int leBoldText=0x7f080001; | |
93 | - } | |
94 | - public static final class xml { | |
95 | - public static final int prefs=0x7f040000; | |
96 | - } | |
97 | -} | |
1 | +/* AUTO-GENERATED FILE. DO NOT MODIFY. | |
2 | + * | |
3 | + * This class was automatically generated by the | |
4 | + * aapt tool from the resource data it found. It | |
5 | + * should not be modified by hand. | |
6 | + */ | |
7 | + | |
8 | +package com.upc.pbe.upcnews; | |
9 | + | |
10 | +public final class R { | |
11 | + public static final class attr { | |
12 | + } | |
13 | + public static final class color { | |
14 | + public static final int Black=0x7f050002; | |
15 | + public static final int Blue=0x7f050004; | |
16 | + public static final int BlueAndroid=0x7f050005; | |
17 | + public static final int Gay=0x7f050007; | |
18 | + public static final int Gray=0x7f05000a; | |
19 | + public static final int Green=0x7f050009; | |
20 | + public static final int Orange=0x7f050003; | |
21 | + public static final int Red=0x7f050008; | |
22 | + public static final int White=0x7f050006; | |
23 | + public static final int Whyte_POwaH=0x7f050001; | |
24 | + public static final int backgroundmain=0x7f050000; | |
25 | + } | |
26 | + public static final class dimen { | |
27 | + public static final int TitleSize=0x7f060000; | |
28 | + public static final int lesize=0x7f060001; | |
29 | + } | |
30 | + public static final class drawable { | |
31 | + public static final int ic_action_search=0x7f020000; | |
32 | + public static final int ic_launcher=0x7f020001; | |
33 | + public static final int ic_ledarklogo=0x7f020002; | |
34 | + public static final int ic_menu_name=0x7f020003; | |
35 | + public static final int ic_startbutton=0x7f020004; | |
36 | + public static final int selectedonlist=0x7f020005; | |
37 | + public static final int selectedonlist2=0x7f020006; | |
38 | + public static final int startbuttontoggle=0x7f020007; | |
39 | + } | |
40 | + public static final class id { | |
41 | + public static final int LinearLayout1=0x7f0a0001; | |
42 | + public static final int RelativeLayout1=0x7f0a0006; | |
43 | + public static final int button=0x7f0a0007; | |
44 | + public static final int itemhelp=0x7f0a000d; | |
45 | + public static final int itemprefs=0x7f0a000c; | |
46 | + public static final int listView1=0x7f0a0003; | |
47 | + public static final int menu_settings=0x7f0a000b; | |
48 | + public static final int rowTextView=0x7f0a000a; | |
49 | + public static final int textView1=0x7f0a0004; | |
50 | + public static final int textView2=0x7f0a0005; | |
51 | + public static final int textViewTitle=0x7f0a0002; | |
52 | + public static final int textViewUrl=0x7f0a0009; | |
53 | + public static final int textViewXml=0x7f0a0008; | |
54 | + public static final int videoView1=0x7f0a0000; | |
55 | + } | |
56 | + public static final class layout { | |
57 | + public static final int activity_video=0x7f030000; | |
58 | + public static final int dirs=0x7f030001; | |
59 | + public static final int help=0x7f030002; | |
60 | + public static final int main_activity=0x7f030003; | |
61 | + public static final int rowlayout=0x7f030004; | |
62 | + } | |
63 | + public static final class menu { | |
64 | + public static final int activity_main=0x7f090000; | |
65 | + public static final int activity_video=0x7f090001; | |
66 | + public static final int menu=0x7f090002; | |
67 | + } | |
68 | + public static final class string { | |
69 | + public static final int app_name=0x7f070000; | |
70 | + public static final int button=0x7f07000c; | |
71 | + public static final int button1=0x7f07000d; | |
72 | + public static final int defaultURL=0x7f070013; | |
73 | + public static final int desc=0x7f070009; | |
74 | + public static final int descarregar=0x7f070003; | |
75 | + public static final int dir=0x7f07000a; | |
76 | + public static final int directoris=0x7f07000b; | |
77 | + public static final int hello_world=0x7f070010; | |
78 | + public static final int help=0x7f070008; | |
79 | + public static final int helpText=0x7f070012; | |
80 | + public static final int hint=0x7f070004; | |
81 | + public static final int menu_settings=0x7f070001; | |
82 | + public static final int prefs=0x7f070007; | |
83 | + public static final int startbuttondescription=0x7f07000f; | |
84 | + public static final int title=0x7f07000e; | |
85 | + public static final int title_activity_main=0x7f070002; | |
86 | + public static final int title_activity_video=0x7f070011; | |
87 | + public static final int url=0x7f070005; | |
88 | + public static final int urlhint=0x7f070006; | |
89 | + } | |
90 | + public static final class style { | |
91 | + public static final int AppTheme=0x7f080000; | |
92 | + public static final int leBoldText=0x7f080001; | |
93 | + } | |
94 | + public static final class xml { | |
95 | + public static final int prefs=0x7f040000; | |
96 | + } | |
97 | +} | ... | ... |
src/com/upc/pbe/upcnews/UpcApp.java
... | ... | @@ -7,17 +7,16 @@ import android.os.Environment; |
7 | 7 | import android.preference.PreferenceManager; |
8 | 8 | import android.util.Log; |
9 | 9 | |
10 | - | |
10 | +//Instanciacio de la nostra aplicacio | |
11 | 11 | public class UpcApp extends Application implements OnSharedPreferenceChangeListener { |
12 | 12 | |
13 | 13 | final static String TAG = "Application"; |
14 | - private SharedPreferences prefs; | |
15 | - private String url = null; | |
14 | + private SharedPreferences prefs; //Conjunt de preferencies de l'aplicacio | |
15 | + private String url = null; | |
16 | 16 | private String desc; |
17 | 17 | private final static String localPath = Environment.getExternalStorageDirectory().getPath() + "/UPC NEWS/"; |
18 | 18 | |
19 | - public String getLocalPath() | |
20 | - { | |
19 | + public String getLocalPath(){ | |
21 | 20 | return localPath; |
22 | 21 | } |
23 | 22 | |
... | ... | @@ -29,7 +28,6 @@ public class UpcApp extends Application implements OnSharedPreferenceChangeListe |
29 | 28 | |
30 | 29 | public void onCreate() { |
31 | 30 | super.onCreate(); |
32 | - | |
33 | 31 | //Prefs |
34 | 32 | prefs = PreferenceManager.getDefaultSharedPreferences(this); |
35 | 33 | prefs.registerOnSharedPreferenceChangeListener(this); |
... | ... | @@ -37,24 +35,19 @@ public class UpcApp extends Application implements OnSharedPreferenceChangeListe |
37 | 35 | Log.d(TAG, "onCreated"); |
38 | 36 | } |
39 | 37 | |
40 | - | |
41 | - | |
42 | 38 | public SharedPreferences getPrefs() { |
43 | 39 | return prefs; |
44 | 40 | } |
45 | 41 | |
46 | - | |
47 | 42 | public void onSharedPreferenceChanged(SharedPreferences arg0, String key) { |
48 | - Log.d(TAG, "onSharedPreferenceChanged for key: " + key); | |
49 | - | |
43 | + Log.d(TAG, "onSharedPreferenceChanged for key: " + key); | |
50 | 44 | } |
51 | 45 | |
52 | 46 | public void setDesc(String s){ |
53 | 47 | desc = s; |
54 | - | |
55 | 48 | } |
56 | 49 | |
57 | 50 | public String getDesc(){ |
58 | 51 | return desc; |
59 | 52 | } |
60 | -} | |
53 | +} | |
61 | 54 | \ No newline at end of file | ... | ... |