Fixed google admod ads

closes #26

Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
2012-04-29 18:42:33 -04:00
parent aadbe9b836
commit 9c99a12335
6 changed files with 20 additions and 24 deletions

View File

@@ -3,8 +3,6 @@
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="lib" path="libs/admob-sdk-android.jar"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="lib" path="/app/android-sdk-linux_86/extras/google/admob_ads_sdk/GoogleAdMobAdsSdk-6.0.0.jar"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>

View File

@@ -7,8 +7,9 @@
<uses-sdk android:minSdkVersion="7" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.VIBRATE" />
<application
android:icon="@drawable/icon"
@@ -24,11 +25,6 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<meta-data
android:name="ADMOB_PUBLISHER_ID"
android:value="a14bad63772f7d3" />
<activity android:name="com.TwentyCodes.android.exception.ExceptionReportActivity" >
</activity>
<activity android:name="ExaltedDice" >
@@ -38,6 +34,10 @@
<service android:name="com.TwentyCodes.android.exception.ReportPostingService" >
</service>
<activity
android:name="com.google.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />
</application>
</manifest> <!-- android:screenOrientation="portrait" -->

Binary file not shown.

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:myapp="com.TwentyCode.android.ExaltedDice"
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:baselineAligned="false"
@@ -54,15 +54,14 @@
android:layout_above="@+id/ad"
android:layout_gravity="top" />
<com.admob.android.ads.AdView
android:id="@id/ad"
android:layout_width="fill_parent"
<com.google.ads.AdView
android:id="@+id/ad"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_gravity="bottom"
myapp:backgroundColor="#000000"
myapp:primaryTextColor="#FFFFFF"
myapp:secondaryTextColor="#CCCCCC" />
ads:adSize="BANNER"
ads:adUnitId="a14bad63772f7d3"
ads:loadAdOnCreate="true" />
</RelativeLayout>
</LinearLayout>

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:myapp="com.TwentyCode.android.ExaltedDice"
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
@@ -56,14 +56,13 @@
android:layout_below="@id/holder"
android:layout_gravity="top" />
<com.admob.android.ads.AdView
android:id="@id/ad"
android:layout_width="fill_parent"
<com.google.ads.AdView
android:id="@+id/ad"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_gravity="bottom"
myapp:backgroundColor="#000000"
myapp:primaryTextColor="#FFFFFF"
myapp:secondaryTextColor="#CCCCCC" />
ads:adSize="BANNER"
ads:adUnitId="a14bad63772f7d3"
ads:loadAdOnCreate="true" />
</RelativeLayout>