Thursday, 12 September 2013

Admob Help Please It's a challenge

Admob Help Please It's a challenge

Okay guys I have done everything I can think of before bother you for
help. And usually I've very good at picking up on this stuff but I am
truly at a loss. I have tried different tuts, mixed and match with no
success. I'm just looking for a detailed (SIMPLE) method to get admod
showing at the top and the bottom (Not at the same time but easily edited
to move to either)
I'm using dreamweaver 5.5 to build and the updated JARS for everything. I
have all the admod stuff in place and the light is green. I had a bunch of
errors at first but I was finally able to get the app to load in the
emulator and it looks great but no ads ever showed after 4 days of fooling
around with it.
Not the working code I had it messed up :)
I'm not lazy just frustrated so an easy, complete cut and pasted would be
a life saver. I do think one of my earlier problems was I wasn't leaving
enough space.
Okay here are my codes: (And it is not loading in the emulator)
DEFAULT ACTIVITY JAVA:
package ___BUNDLE___;
import android.app.Activity;
import android.os.Bundle;
import com.phonegap.*;
public class DefaultActivity extends DroidGap
{
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
super.setIntegerProperty( "splashscreen", R.drawable.splash );
super.loadUrl("file:///android_asset/www/index.html", 1000);
}
}
MAIN:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >

</LinearLayout>

MANIFEST:
<?xml version="1.0" encoding="utf-8"?>
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!-- A full list of available permissions is available at
http://developer.android.com/reference/android/Manifest.permission.html
-->
<application android:icon="@drawable/icon"
android:label="@string/app_name" android:debuggable="true">
<activity android:name=".DefaultActivity"
android:label="@string/app_name"
android:configChanges="orientation|keyboardHidden">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.google.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
/>
</application>
<uses-sdk android:minSdkVersion="7" />
And if this is junk I'll take one that will work I just really need to get
this app up and running...
Thank you in advance I know you guys are great here and I will give the
knowledge back to others in need.
One side note for some reason all my packages say DefaultActivity instead
of the package name (I'm talking in my projects list) I can't figure out
how to make it show it's true name. Yeah I know, but hey I'm trying hard
to learn it....
Thanks (I used CTL K but it's not doing it well sorry)

No comments:

Post a Comment