From e951bbe638b4af5330d68394a1a37e1b118bab28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 31 Jan 2014 16:28:09 +0100 Subject: Android : 01-TheActivityClass: add --- .../ActivityLab/AndroidManifest.xml | 31 +++++ Android/01-TheActivityClass/ActivityLab/build.xml | 92 +++++++++++++++ .../ActivityLab/ic_launcher-web.png | Bin 0 -> 55743 bytes .../ActivityLab/local.properties | 10 ++ .../ActivityLab/proguard-project.txt | 20 ++++ .../ActivityLab/project.properties | 14 +++ .../ActivityLab/res/drawable-hdpi/ic_launcher.png | Bin 0 -> 8217 bytes .../ActivityLab/res/drawable-ldpi/ic_launcher.png | Bin 0 -> 2557 bytes .../ActivityLab/res/drawable-mdpi/ic_launcher.png | Bin 0 -> 4062 bytes .../ActivityLab/res/drawable-xhdpi/ic_launcher.png | Bin 0 -> 13563 bytes .../ActivityLab/res/layout/activity_one.xml | 32 +++++ .../ActivityLab/res/layout/activity_two.xml | 33 ++++++ .../ActivityLab/res/values-v11/styles.xml | 11 ++ .../ActivityLab/res/values-v14/styles.xml | 12 ++ .../ActivityLab/res/values/strings.xml | 14 +++ .../ActivityLab/res/values/styles.xml | 20 ++++ .../src/course/labs/activitylab/ActivityOne.java | 129 +++++++++++++++++++++ .../src/course/labs/activitylab/ActivityTwo.java | 126 ++++++++++++++++++++ .../ActivityLab/tests/AndroidManifest.xml | 19 +++ .../ActivityLab/tests/ant.properties | 18 +++ .../ActivityLab/tests/build.xml | 92 +++++++++++++++ .../ActivityLab/tests/libs/robotium-solo-5.0.1.jar | Bin 0 -> 110489 bytes .../ActivityLab/tests/local.properties | 10 ++ .../ActivityLab/tests/proguard-project.txt | 20 ++++ .../ActivityLab/tests/project.properties | 14 +++ .../src/course/labs/activitylab/test/Test1.java | 52 +++++++++ .../src/course/labs/activitylab/test/Test2.java | 62 ++++++++++ .../src/course/labs/activitylab/test/Test3.java | 64 ++++++++++ .../ActivityLifecycleWalkthrough.pdf | Bin 0 -> 264437 bytes Android/01-TheActivityClass/Lab-Activity.pdf | Bin 0 -> 381454 bytes .../RobotiumTestCasesDecisionTree.png | Bin 0 -> 16860 bytes 31 files changed, 895 insertions(+) create mode 100644 Android/01-TheActivityClass/ActivityLab/AndroidManifest.xml create mode 100644 Android/01-TheActivityClass/ActivityLab/build.xml create mode 100644 Android/01-TheActivityClass/ActivityLab/ic_launcher-web.png create mode 100644 Android/01-TheActivityClass/ActivityLab/local.properties create mode 100644 Android/01-TheActivityClass/ActivityLab/proguard-project.txt create mode 100644 Android/01-TheActivityClass/ActivityLab/project.properties create mode 100644 Android/01-TheActivityClass/ActivityLab/res/drawable-hdpi/ic_launcher.png create mode 100644 Android/01-TheActivityClass/ActivityLab/res/drawable-ldpi/ic_launcher.png create mode 100644 Android/01-TheActivityClass/ActivityLab/res/drawable-mdpi/ic_launcher.png create mode 100644 Android/01-TheActivityClass/ActivityLab/res/drawable-xhdpi/ic_launcher.png create mode 100644 Android/01-TheActivityClass/ActivityLab/res/layout/activity_one.xml create mode 100644 Android/01-TheActivityClass/ActivityLab/res/layout/activity_two.xml create mode 100644 Android/01-TheActivityClass/ActivityLab/res/values-v11/styles.xml create mode 100644 Android/01-TheActivityClass/ActivityLab/res/values-v14/styles.xml create mode 100644 Android/01-TheActivityClass/ActivityLab/res/values/strings.xml create mode 100644 Android/01-TheActivityClass/ActivityLab/res/values/styles.xml create mode 100644 Android/01-TheActivityClass/ActivityLab/src/course/labs/activitylab/ActivityOne.java create mode 100644 Android/01-TheActivityClass/ActivityLab/src/course/labs/activitylab/ActivityTwo.java create mode 100644 Android/01-TheActivityClass/ActivityLab/tests/AndroidManifest.xml create mode 100644 Android/01-TheActivityClass/ActivityLab/tests/ant.properties create mode 100644 Android/01-TheActivityClass/ActivityLab/tests/build.xml create mode 100644 Android/01-TheActivityClass/ActivityLab/tests/libs/robotium-solo-5.0.1.jar create mode 100644 Android/01-TheActivityClass/ActivityLab/tests/local.properties create mode 100644 Android/01-TheActivityClass/ActivityLab/tests/proguard-project.txt create mode 100644 Android/01-TheActivityClass/ActivityLab/tests/project.properties create mode 100644 Android/01-TheActivityClass/ActivityLab/tests/src/course/labs/activitylab/test/Test1.java create mode 100644 Android/01-TheActivityClass/ActivityLab/tests/src/course/labs/activitylab/test/Test2.java create mode 100644 Android/01-TheActivityClass/ActivityLab/tests/src/course/labs/activitylab/test/Test3.java create mode 100644 Android/01-TheActivityClass/ActivityLifecycleWalkthrough.pdf create mode 100644 Android/01-TheActivityClass/Lab-Activity.pdf create mode 100644 Android/01-TheActivityClass/RobotiumTestCasesDecisionTree.png diff --git a/Android/01-TheActivityClass/ActivityLab/AndroidManifest.xml b/Android/01-TheActivityClass/ActivityLab/AndroidManifest.xml new file mode 100644 index 0000000..049a021 --- /dev/null +++ b/Android/01-TheActivityClass/ActivityLab/AndroidManifest.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Android/01-TheActivityClass/ActivityLab/build.xml b/Android/01-TheActivityClass/ActivityLab/build.xml new file mode 100644 index 0000000..914177e --- /dev/null +++ b/Android/01-TheActivityClass/ActivityLab/build.xml @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Android/01-TheActivityClass/ActivityLab/ic_launcher-web.png b/Android/01-TheActivityClass/ActivityLab/ic_launcher-web.png new file mode 100644 index 0000000..424f260 Binary files /dev/null and b/Android/01-TheActivityClass/ActivityLab/ic_launcher-web.png differ diff --git a/Android/01-TheActivityClass/ActivityLab/local.properties b/Android/01-TheActivityClass/ActivityLab/local.properties new file mode 100644 index 0000000..12a0114 --- /dev/null +++ b/Android/01-TheActivityClass/ActivityLab/local.properties @@ -0,0 +1,10 @@ +# This file is automatically generated by Android Tools. +# Do not modify this file -- YOUR CHANGES WILL BE ERASED! +# +# This file must *NOT* be checked into Version Control Systems, +# as it contains information specific to your local configuration. + +# location of the SDK. This is only used by Ant +# For customization when using a Version Control System, please read the +# header note. +sdk.dir=/opt/android-sdk diff --git a/Android/01-TheActivityClass/ActivityLab/proguard-project.txt b/Android/01-TheActivityClass/ActivityLab/proguard-project.txt new file mode 100644 index 0000000..f2fe155 --- /dev/null +++ b/Android/01-TheActivityClass/ActivityLab/proguard-project.txt @@ -0,0 +1,20 @@ +# To enable ProGuard in your project, edit project.properties +# to define the proguard.config property as described in that file. +# +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in ${sdk.dir}/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the ProGuard +# include property in project.properties. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} diff --git a/Android/01-TheActivityClass/ActivityLab/project.properties b/Android/01-TheActivityClass/ActivityLab/project.properties new file mode 100644 index 0000000..ce39f2d --- /dev/null +++ b/Android/01-TheActivityClass/ActivityLab/project.properties @@ -0,0 +1,14 @@ +# This file is automatically generated by Android Tools. +# Do not modify this file -- YOUR CHANGES WILL BE ERASED! +# +# This file must be checked in Version Control Systems. +# +# To customize properties used by the Ant build system edit +# "ant.properties", and override values to adapt the script to your +# project structure. +# +# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): +#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt + +# Project target. +target=android-18 diff --git a/Android/01-TheActivityClass/ActivityLab/res/drawable-hdpi/ic_launcher.png b/Android/01-TheActivityClass/ActivityLab/res/drawable-hdpi/ic_launcher.png new file mode 100644 index 0000000..0e79b18 Binary files /dev/null and b/Android/01-TheActivityClass/ActivityLab/res/drawable-hdpi/ic_launcher.png differ diff --git a/Android/01-TheActivityClass/ActivityLab/res/drawable-ldpi/ic_launcher.png b/Android/01-TheActivityClass/ActivityLab/res/drawable-ldpi/ic_launcher.png new file mode 100644 index 0000000..ebfac7d Binary files /dev/null and b/Android/01-TheActivityClass/ActivityLab/res/drawable-ldpi/ic_launcher.png differ diff --git a/Android/01-TheActivityClass/ActivityLab/res/drawable-mdpi/ic_launcher.png b/Android/01-TheActivityClass/ActivityLab/res/drawable-mdpi/ic_launcher.png new file mode 100644 index 0000000..1183441 Binary files /dev/null and b/Android/01-TheActivityClass/ActivityLab/res/drawable-mdpi/ic_launcher.png differ diff --git a/Android/01-TheActivityClass/ActivityLab/res/drawable-xhdpi/ic_launcher.png b/Android/01-TheActivityClass/ActivityLab/res/drawable-xhdpi/ic_launcher.png new file mode 100644 index 0000000..c8ab2a1 Binary files /dev/null and b/Android/01-TheActivityClass/ActivityLab/res/drawable-xhdpi/ic_launcher.png differ diff --git a/Android/01-TheActivityClass/ActivityLab/res/layout/activity_one.xml b/Android/01-TheActivityClass/ActivityLab/res/layout/activity_one.xml new file mode 100644 index 0000000..d281f0f --- /dev/null +++ b/Android/01-TheActivityClass/ActivityLab/res/layout/activity_one.xml @@ -0,0 +1,32 @@ + + + + + + + + + + +