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. +

    +
  1. + AdMob SDK - http://code.google.com/mobile/ads/download.html +
  2. +
  3. + Android Support Package v4 or above - http://developer.android.com/sdk/compatibility-library.html +
  4. +
+

+ +

Refer to the Advertising without Compromising User Experience class for detail. \ No newline at end of file diff --git a/samples/training/ads-and-ux/res/drawable-hdpi/ic_home.png b/samples/training/ads-and-ux/res/drawable-hdpi/ic_home.png new file mode 100644 index 000000000..7e52ff595 Binary files /dev/null and b/samples/training/ads-and-ux/res/drawable-hdpi/ic_home.png differ diff --git a/samples/training/ads-and-ux/res/drawable-mdpi/android_logo.png b/samples/training/ads-and-ux/res/drawable-mdpi/android_logo.png new file mode 100644 index 000000000..15f1545f0 Binary files /dev/null and b/samples/training/ads-and-ux/res/drawable-mdpi/android_logo.png differ diff --git a/samples/training/ads-and-ux/res/layout-land/ad_bottom.xml b/samples/training/ads-and-ux/res/layout-land/ad_bottom.xml new file mode 100644 index 000000000..0b3ac14b5 --- /dev/null +++ b/samples/training/ads-and-ux/res/layout-land/ad_bottom.xml @@ -0,0 +1,39 @@ + + + + + + + + + + diff --git a/samples/training/ads-and-ux/res/layout-large/ad_bottom.xml b/samples/training/ads-and-ux/res/layout-large/ad_bottom.xml new file mode 100644 index 000000000..54de75044 --- /dev/null +++ b/samples/training/ads-and-ux/res/layout-large/ad_bottom.xml @@ -0,0 +1,39 @@ + + + + + + + + + + \ No newline at end of file diff --git a/samples/training/ads-and-ux/res/layout-large/ad_covers_content.xml b/samples/training/ads-and-ux/res/layout-large/ad_covers_content.xml new file mode 100644 index 000000000..b3359c2a2 --- /dev/null +++ b/samples/training/ads-and-ux/res/layout-large/ad_covers_content.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + diff --git a/samples/training/ads-and-ux/res/layout-large/ad_next_to_button.xml b/samples/training/ads-and-ux/res/layout-large/ad_next_to_button.xml new file mode 100644 index 000000000..a83f4f237 --- /dev/null +++ b/samples/training/ads-and-ux/res/layout-large/ad_next_to_button.xml @@ -0,0 +1,38 @@ + + + + + + + +