Commit e0ab396e8c53fc323e13177b069dbf0b9f85a1c6

Authored by Imanol-Mikel Barba Sabariego
1 parent 1bba31cf

--no commit message

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 backgroundmain=0x7f050000;
15   - }
16   - public static final class dimen {
17   - public static final int TitleSize=0x7f060000;
18   - }
19   - public static final class drawable {
20   - public static final int ic_action_search=0x7f020000;
21   - public static final int ic_launcher=0x7f020001;
22   - public static final int ic_menu_name=0x7f020002;
23   - public static final int ic_startbutton=0x7f020003;
24   - }
25   - public static final class id {
26   - public static final int AbsoluteLayout1=0x7f0a0006;
27   - public static final int LinearLayout1=0x7f0a0001;
28   - public static final int button=0x7f0a0008;
29   - public static final int itemhelp=0x7f0a000c;
30   - public static final int itemprefs=0x7f0a000b;
31   - public static final int listView1=0x7f0a0003;
32   - public static final int menu_settings=0x7f0a000a;
33   - public static final int rowTextView=0x7f0a0009;
34   - public static final int textView1=0x7f0a0004;
35   - public static final int textView2=0x7f0a0005;
36   - public static final int textViewTitle=0x7f0a0002;
37   - public static final int textViewXml=0x7f0a0007;
38   - public static final int videoView1=0x7f0a0000;
39   - }
40   - public static final class layout {
41   - public static final int activity_video=0x7f030000;
42   - public static final int dirs=0x7f030001;
43   - public static final int help=0x7f030002;
44   - public static final int main_activity=0x7f030003;
45   - public static final int rowlayout=0x7f030004;
46   - }
47   - public static final class menu {
48   - public static final int activity_main=0x7f090000;
49   - public static final int activity_video=0x7f090001;
50   - public static final int menu=0x7f090002;
51   - }
52   - public static final class string {
53   - public static final int app_name=0x7f070000;
54   - public static final int button=0x7f07000c;
55   - public static final int button1=0x7f07000d;
56   - public static final int desc=0x7f070009;
57   - public static final int descarregar=0x7f070003;
58   - public static final int dir=0x7f07000a;
59   - public static final int directoris=0x7f07000b;
60   - public static final int hello_world=0x7f070010;
61   - public static final int help=0x7f070008;
62   - public static final int hint=0x7f070004;
63   - public static final int menu_settings=0x7f070001;
64   - public static final int prefs=0x7f070007;
65   - public static final int startbuttondescription=0x7f07000f;
66   - public static final int title=0x7f07000e;
67   - public static final int title_activity_main=0x7f070002;
68   - public static final int title_activity_video=0x7f070011;
69   - public static final int url=0x7f070005;
70   - public static final int urlhint=0x7f070006;
71   - }
72   - public static final class style {
73   - public static final int AppTheme=0x7f080000;
74   - }
75   - public static final class xml {
76   - public static final int prefs=0x7f040000;
77   - }
78   -}
  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 backgroundmain=0x7f050000;
  15 + }
  16 + public static final class dimen {
  17 + public static final int TitleSize=0x7f060000;
  18 + }
  19 + public static final class drawable {
  20 + public static final int ic_action_search=0x7f020000;
  21 + public static final int ic_launcher=0x7f020001;
  22 + public static final int ic_menu_name=0x7f020002;
  23 + public static final int ic_startbutton=0x7f020003;
  24 + }
  25 + public static final class id {
  26 + public static final int LinearLayout1=0x7f0a0001;
  27 + public static final int RelativeLayout1=0x7f0a0006;
  28 + public static final int button=0x7f0a0007;
  29 + public static final int itemhelp=0x7f0a000c;
  30 + public static final int itemprefs=0x7f0a000b;
  31 + public static final int listView1=0x7f0a0003;
  32 + public static final int menu_settings=0x7f0a000a;
  33 + public static final int rowTextView=0x7f0a0009;
  34 + public static final int textView1=0x7f0a0004;
  35 + public static final int textView2=0x7f0a0005;
  36 + public static final int textViewTitle=0x7f0a0002;
  37 + public static final int textViewXml=0x7f0a0008;
  38 + public static final int videoView1=0x7f0a0000;
  39 + }
  40 + public static final class layout {
  41 + public static final int activity_video=0x7f030000;
  42 + public static final int dirs=0x7f030001;
  43 + public static final int help=0x7f030002;
  44 + public static final int main_activity=0x7f030003;
  45 + public static final int rowlayout=0x7f030004;
  46 + }
  47 + public static final class menu {
  48 + public static final int activity_main=0x7f090000;
  49 + public static final int activity_video=0x7f090001;
  50 + public static final int menu=0x7f090002;
  51 + }
  52 + public static final class string {
  53 + public static final int app_name=0x7f070000;
  54 + public static final int button=0x7f07000c;
  55 + public static final int button1=0x7f07000d;
  56 + public static final int desc=0x7f070009;
  57 + public static final int descarregar=0x7f070003;
  58 + public static final int dir=0x7f07000a;
  59 + public static final int directoris=0x7f07000b;
  60 + public static final int hello_world=0x7f070010;
  61 + public static final int help=0x7f070008;
  62 + public static final int hint=0x7f070004;
  63 + public static final int menu_settings=0x7f070001;
  64 + public static final int prefs=0x7f070007;
  65 + public static final int startbuttondescription=0x7f07000f;
  66 + public static final int title=0x7f07000e;
  67 + public static final int title_activity_main=0x7f070002;
  68 + public static final int title_activity_video=0x7f070011;
  69 + public static final int url=0x7f070005;
  70 + public static final int urlhint=0x7f070006;
  71 + }
  72 + public static final class style {
  73 + public static final int AppTheme=0x7f080000;
  74 + }
  75 + public static final class xml {
  76 + public static final int prefs=0x7f040000;
  77 + }
  78 +}
... ...
res/layout/main_activity.xml
1   -<?xml version="1.0" encoding="utf-8"?>
2   -<AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
3   - xmlns:tools="http://schemas.android.com/tools"
4   - android:id="@+id/AbsoluteLayout1"
5   - android:layout_width="fill_parent"
6   - android:layout_height="fill_parent"
7   - tools:ignore="Deprecated" >
8   -
9   - <TextView
10   - android:id="@+id/textViewXml"
11   - android:layout_width="wrap_content"
12   - android:layout_height="wrap_content"
13   - android:layout_x="38dp"
14   - android:layout_y="423dp"
15   - android:gravity="clip_vertical"
16   - android:hint="@string/hint"
17   - android:scrollbarStyle="insideInset"
18   - android:scrollbars="vertical" />
19   -
20   - <ImageButton
21   - android:id="@+id/button"
22   - android:layout_width="256dp"
23   - android:layout_height="256dp"
24   - android:layout_x="32dp"
25   - android:layout_y="84dp"
26   - android:background="@drawable/ic_startbutton"
27   - android:contentDescription="@string/startbuttondescription" />
28   -
29   -</AbsoluteLayout>
30 1 \ No newline at end of file
  2 +<?xml version="1.0" encoding="utf-8"?>
  3 +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4 + xmlns:tools="http://schemas.android.com/tools"
  5 + android:id="@+id/RelativeLayout1"
  6 + android:layout_width="fill_parent"
  7 + android:layout_height="fill_parent"
  8 + android:background="@color/backgroundmain"
  9 + android:focusable="true"
  10 + android:focusableInTouchMode="true"
  11 + tools:ignore="Deprecated" >
  12 +
  13 + <ImageButton
  14 + android:id="@+id/button"
  15 + android:layout_width="256dp"
  16 + android:layout_height="256dp"
  17 + android:layout_centerHorizontal="true"
  18 + android:layout_centerVertical="true"
  19 + android:adjustViewBounds="true"
  20 + android:background="@drawable/ic_startbutton"
  21 + android:contentDescription="@string/startbuttondescription"
  22 + android:scaleType="fitCenter" />
  23 +
  24 + <TextView
  25 + android:id="@+id/textViewXml"
  26 + android:layout_width="wrap_content"
  27 + android:layout_height="wrap_content"
  28 + android:layout_below="@+id/button"
  29 + android:layout_centerHorizontal="true"
  30 + android:layout_marginTop="34dp"
  31 + android:gravity="clip_vertical"
  32 + android:hint="@string/hint"
  33 + android:scrollbarStyle="insideInset"
  34 + android:scrollbars="vertical" />
  35 +
  36 +</RelativeLayout>
31 37 \ No newline at end of file
... ...
src/com/upc/pbe/upcnews/Directoris.java
... ... @@ -92,6 +92,7 @@ public class Directoris extends Activity implements OnItemClickListener
92 92 if(text.getText().toString().endsWith(".m3u8"))
93 93 {
94 94 text.setTypeface(null,Typeface.BOLD);
  95 + Log.d(TAG, text.getText().toString());
95 96 }
96 97 }
97 98 }
... ...
src/com/upc/pbe/upcnews/MainActivity.java
... ... @@ -3,6 +3,7 @@ package com.upc.pbe.upcnews;
3 3 import android.app.Activity;
4 4 import android.content.Context;
5 5 import android.content.Intent;
  6 +import android.graphics.Typeface;
6 7 import android.net.wifi.WifiInfo;
7 8 import android.net.wifi.WifiManager;
8 9 import android.os.Bundle;
... ... @@ -63,7 +64,6 @@ public class MainActivity extends Activity implements OnClickListener {
63 64 Log.d(TAG, str);
64 65 }
65 66 }.start();
66   -
67 67 }
68 68  
69 69 public boolean onCreateOptionsMenu(Menu menu) {
... ...