From df52a4cafec131becae445fb664ff03542fe3e4f Mon Sep 17 00:00:00 2001
From: Fred Chung
Date: Sun, 27 Nov 2011 22:33:23 -0800
Subject: [PATCH] Sample code for Android U lesson: Monetization - Ads without
Compromising User Experience.
Change-Id: I6b077c24f71c00e99fe6e15da127b02707ad57f3
---
.../training/ads-and-ux/AndroidManifest.xml | 42 +++++
samples/training/ads-and-ux/ReadMe.txt | 9 +
samples/training/ads-and-ux/_index.html | 14 ++
.../ads-and-ux/res/drawable-hdpi/ic_home.png | Bin 0 -> 2030 bytes
.../res/drawable-mdpi/android_logo.png | Bin 0 -> 21222 bytes
.../ads-and-ux/res/layout-land/ad_bottom.xml | 39 +++++
.../ads-and-ux/res/layout-large/ad_bottom.xml | 39 +++++
.../res/layout-large/ad_covers_content.xml | 44 +++++
.../res/layout-large/ad_next_to_button.xml | 38 ++++
.../ads-and-ux/res/layout-large/ad_top.xml | 39 +++++
.../ads-and-ux/res/layout/ad_bottom.xml | 39 +++++
.../res/layout/ad_covers_content.xml | 44 +++++
.../res/layout/ad_next_to_button.xml | 38 ++++
.../training/ads-and-ux/res/layout/ad_top.xml | 39 +++++
.../ads-and-ux/res/layout/fragment_pager.xml | 28 +++
.../training/ads-and-ux/res/values/attrs.xml | 51 ++++++
.../training/ads-and-ux/res/values/colors.xml | 20 +++
.../training/ads-and-ux/res/values/dimens.xml | 27 +++
.../ads-and-ux/res/values/strings.xml | 26 +++
.../training/ads/AdsCatalogActivity.java | 163 ++++++++++++++++++
20 files changed, 739 insertions(+)
create mode 100644 samples/training/ads-and-ux/AndroidManifest.xml
create mode 100644 samples/training/ads-and-ux/ReadMe.txt
create mode 100644 samples/training/ads-and-ux/_index.html
create mode 100644 samples/training/ads-and-ux/res/drawable-hdpi/ic_home.png
create mode 100644 samples/training/ads-and-ux/res/drawable-mdpi/android_logo.png
create mode 100644 samples/training/ads-and-ux/res/layout-land/ad_bottom.xml
create mode 100644 samples/training/ads-and-ux/res/layout-large/ad_bottom.xml
create mode 100644 samples/training/ads-and-ux/res/layout-large/ad_covers_content.xml
create mode 100644 samples/training/ads-and-ux/res/layout-large/ad_next_to_button.xml
create mode 100644 samples/training/ads-and-ux/res/layout-large/ad_top.xml
create mode 100644 samples/training/ads-and-ux/res/layout/ad_bottom.xml
create mode 100644 samples/training/ads-and-ux/res/layout/ad_covers_content.xml
create mode 100644 samples/training/ads-and-ux/res/layout/ad_next_to_button.xml
create mode 100644 samples/training/ads-and-ux/res/layout/ad_top.xml
create mode 100644 samples/training/ads-and-ux/res/layout/fragment_pager.xml
create mode 100644 samples/training/ads-and-ux/res/values/attrs.xml
create mode 100644 samples/training/ads-and-ux/res/values/colors.xml
create mode 100644 samples/training/ads-and-ux/res/values/dimens.xml
create mode 100644 samples/training/ads-and-ux/res/values/strings.xml
create mode 100644 samples/training/ads-and-ux/src/com/example/training/ads/AdsCatalogActivity.java
diff --git a/samples/training/ads-and-ux/AndroidManifest.xml b/samples/training/ads-and-ux/AndroidManifest.xml
new file mode 100644
index 000000000..30032f202
--- /dev/null
+++ b/samples/training/ads-and-ux/AndroidManifest.xml
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/samples/training/ads-and-ux/ReadMe.txt b/samples/training/ads-and-ux/ReadMe.txt
new file mode 100644
index 000000000..137397c0d
--- /dev/null
+++ b/samples/training/ads-and-ux/ReadMe.txt
@@ -0,0 +1,9 @@
+This sample demonstrates the integration of an mobile ad SDK with your application. In this case,
+AdMob is used.
+
+The application has the following external dependencies. In order to build, be sure to obtain these
+JAR files and put them under the libs directory.
+1. AdMob SDK
+ http://code.google.com/mobile/ads/download.html
+2. ViewPager depends on the Android Support Package v4 or above.
+ http://developer.android.com/sdk/compatibility-library.html
\ No newline at end of file
diff --git a/samples/training/ads-and-ux/_index.html b/samples/training/ads-and-ux/_index.html
new file mode 100644
index 000000000..a4eeb315b
--- /dev/null
+++ b/samples/training/ads-and-ux/_index.html
@@ -0,0 +1,14 @@
+
This sample demonstrates the integration of a mobile ad SDK with your application. In this case, AdMob is used to illustrate key integration concepts.
+
+
The application has the following external dependencies. In order to build, be sure to obtain these JAR files and put them under the libs/ directory.
+