summaryrefslogtreecommitdiffstats
path: root/Android/02-Intents/IntentsLab/res
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-02-12 22:33:14 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2016-11-10 17:40:54 +0100
commitee3ef2bcf3656e3e7a02d86d43858cc8145508da (patch)
treec428969d47180877913f95201067f4b750f91b2a /Android/02-Intents/IntentsLab/res
parent339c57d3520c8de6f970b020c87f77ec266f3bf8 (diff)
downloadcoursera-ee3ef2bcf3656e3e7a02d86d43858cc8145508da.zip
coursera-ee3ef2bcf3656e3e7a02d86d43858cc8145508da.tar.gz
Android : 02-Intents: add
Diffstat (limited to 'Android/02-Intents/IntentsLab/res')
-rw-r--r--Android/02-Intents/IntentsLab/res/drawable-hdpi/ic_launcher.pngbin0 -> 9397 bytes
-rw-r--r--Android/02-Intents/IntentsLab/res/drawable-ldpi/ic_launcher.pngbin0 -> 2729 bytes
-rw-r--r--Android/02-Intents/IntentsLab/res/drawable-mdpi/ic_launcher.pngbin0 -> 5237 bytes
-rw-r--r--Android/02-Intents/IntentsLab/res/drawable-xhdpi/ic_launcher.pngbin0 -> 14383 bytes
-rw-r--r--Android/02-Intents/IntentsLab/res/layout/activity_loader_activity.xml25
-rw-r--r--Android/02-Intents/IntentsLab/res/layout/explicitly_loaded_activity.xml33
-rw-r--r--Android/02-Intents/IntentsLab/res/values/strings.xml25
-rw-r--r--Android/02-Intents/IntentsLab/res/values/styles.xml20
8 files changed, 103 insertions, 0 deletions
diff --git a/Android/02-Intents/IntentsLab/res/drawable-hdpi/ic_launcher.png b/Android/02-Intents/IntentsLab/res/drawable-hdpi/ic_launcher.png
new file mode 100644
index 0000000..96a442e
--- /dev/null
+++ b/Android/02-Intents/IntentsLab/res/drawable-hdpi/ic_launcher.png
Binary files differ
diff --git a/Android/02-Intents/IntentsLab/res/drawable-ldpi/ic_launcher.png b/Android/02-Intents/IntentsLab/res/drawable-ldpi/ic_launcher.png
new file mode 100644
index 0000000..9923872
--- /dev/null
+++ b/Android/02-Intents/IntentsLab/res/drawable-ldpi/ic_launcher.png
Binary files differ
diff --git a/Android/02-Intents/IntentsLab/res/drawable-mdpi/ic_launcher.png b/Android/02-Intents/IntentsLab/res/drawable-mdpi/ic_launcher.png
new file mode 100644
index 0000000..359047d
--- /dev/null
+++ b/Android/02-Intents/IntentsLab/res/drawable-mdpi/ic_launcher.png
Binary files differ
diff --git a/Android/02-Intents/IntentsLab/res/drawable-xhdpi/ic_launcher.png b/Android/02-Intents/IntentsLab/res/drawable-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..71c6d76
--- /dev/null
+++ b/Android/02-Intents/IntentsLab/res/drawable-xhdpi/ic_launcher.png
Binary files differ
diff --git a/Android/02-Intents/IntentsLab/res/layout/activity_loader_activity.xml b/Android/02-Intents/IntentsLab/res/layout/activity_loader_activity.xml
new file mode 100644
index 0000000..00218cb
--- /dev/null
+++ b/Android/02-Intents/IntentsLab/res/layout/activity_loader_activity.xml
@@ -0,0 +1,25 @@
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical" >
+
+ <Button
+ android:id="@+id/explicit_activation_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/explicit_activation_button_string" />
+
+ <Button
+ android:id="@+id/implicit_activation_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/implicit_activation_button_string" />
+
+ <TextView
+ android:id="@+id/textView1"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:text="@string/no_text_entered" />
+
+</LinearLayout> \ No newline at end of file
diff --git a/Android/02-Intents/IntentsLab/res/layout/explicitly_loaded_activity.xml b/Android/02-Intents/IntentsLab/res/layout/explicitly_loaded_activity.xml
new file mode 100644
index 0000000..c4757c0
--- /dev/null
+++ b/Android/02-Intents/IntentsLab/res/layout/explicitly_loaded_activity.xml
@@ -0,0 +1,33 @@
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" >
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerHorizontal="true"
+ android:layout_centerVertical="true"
+ android:text="@string/explicit_message" />
+
+ <EditText
+ android:id="@+id/editText"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentTop="true"
+ android:ems="10"
+ android:hint="@string/enter_text_here_string" >
+
+ <requestFocus />
+ </EditText>
+
+ <Button
+ android:id="@+id/enter_button"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentLeft="true"
+ android:layout_below="@+id/editText"
+ android:text="@string/enter_string" />
+
+</RelativeLayout> \ No newline at end of file
diff --git a/Android/02-Intents/IntentsLab/res/values/strings.xml b/Android/02-Intents/IntentsLab/res/values/strings.xml
new file mode 100644
index 0000000..28a476b
--- /dev/null
+++ b/Android/02-Intents/IntentsLab/res/values/strings.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <string name="app_name">IntentsLab</string>
+ <string name="main_message">Press a button:</string>
+ <string name="menu_settings">Settings</string>
+ <string name="title_explicit">Explicit Activation</string>
+ <string name="title_main">Activity Loader Activity</string>
+ <string name="explicit_message">You have sent an Explicit Intent!</string>
+ <string name="explicit_activation_button_string">Explicit Activation</string>
+ <string name="implicit_activation_button_string">Implicit Activation</string>
+ <string name="main_button3">Part 2: Permissions</string>
+ <string name="title_permissions">Permissions</string>
+ <string name="perms_button1">Get Bookmarks</string>
+ <string name="perms_button2">Part 3: Customization</string>
+ <string name="place_holder">\n \n Bookmarks Go Here \n \n</string>
+ <string name="title_activity_customization">Customization</string>
+ <string name="cust_button1">Start Dangerous Activity</string>
+ <string name="cust_message">This button will load a Dangerous Level activity</string>
+ <string name="title_activity_my_browser">MyBrowser</string>
+ <string name="no_text_entered">No Text Entered</string>
+ <string name="enter_string">Enter</string>
+ <string name="enter_text_here_string">Enter Text Here</string>
+
+</resources> \ No newline at end of file
diff --git a/Android/02-Intents/IntentsLab/res/values/styles.xml b/Android/02-Intents/IntentsLab/res/values/styles.xml
new file mode 100644
index 0000000..4a10ca4
--- /dev/null
+++ b/Android/02-Intents/IntentsLab/res/values/styles.xml
@@ -0,0 +1,20 @@
+<resources>
+
+ <!--
+ Base application theme, dependent on API level. This theme is replaced
+ by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
+ -->
+ <style name="AppBaseTheme" parent="android:Theme.Light">
+ <!--
+ Theme customizations available in newer API levels can go in
+ res/values-vXX/styles.xml, while customizations related to
+ backward-compatibility can go here.
+ -->
+ </style>
+
+ <!-- Application theme. -->
+ <style name="AppTheme" parent="AppBaseTheme">
+ <!-- All customizations that are NOT specific to a particular API-level can go here. -->
+ </style>
+
+</resources> \ No newline at end of file