Problem in using Admob
<p>I have used following codes to add Admob in my app but there is an error shown in java file can anyone tell me why this error occur..</p>

<p>code in main.xml file</p>

<pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    &gt;

 &lt;com.admob.android.ads.AdView
       android:id="@+id/ad"
       android:layout_width="fill_parent"
       android:layout_height="wrap_content"
       myapp:backgroundColor="#000000"
       myapp:primaryTextColor="#FFFFFF"
       myapp:secondaryTextColor="#CCCCCC"/&gt;
&lt;TextView  
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="@string/hello"
    /&gt;
&lt;/LinearLayout&gt;
</code></pre>

<p>code in attrs.xml file</p>

<pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;resources&gt;
    &lt;declare-styleable name="com.admob.android.ads.AdView"&gt;
    &lt;attr name="backgroundColor" format="color" /&gt;
    &lt;attr name="primaryTextColor" format="color" /&gt;
    &lt;attr name="secondaryTextColor" format="color" /&gt;
    &lt;attr name="keywords" format="string" /&gt;
    &lt;attr name="refreshInterval" format="integer" /&gt;
    &lt;/declare-styleable&gt;
&lt;/resources&gt;
</code></pre>

<p>code in android manifestfile</p>

<pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:myapp="http://schemas.android.com/apk/res/com.admob.admobtest"
      package="com.admob.admobtest"
      android:versionCode="1"
      android:versionName="1.0"&gt;
    &lt;uses-sdk android:minSdkVersion="8" /&gt;

    &lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt;
        &lt;activity android:name=".AdmobtestActivity"
                  android:label="@string/app_name"&gt;
            &lt;intent-filter&gt;
                &lt;action android:name="android.intent.action.MAIN" /&gt;
                &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
            &lt;/intent-filter&gt;
        &lt;/activity&gt;
    &lt;!-- The application's publisher ID assigned by AdMob --&gt;
    &lt;meta-data android:value="YOUR_ID_HERE" android:name="ADMOB_PUBLISHER_ID" /&gt;

    &lt;!-- AdMobActivity definition --&gt;
    &lt;activity android:name="com.admob.android.ads.AdMobActivity"
    android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
    android:configChanges="orientation|keyboard|keyboardHidden" /&gt;
    &lt;!-- Track Market installs --&gt;
    &lt;receiver android:name="com.admob.android.ads.analytics.InstallReceiver"
    android:exported="true"&gt;
    &lt;intent-filter&gt;
       &lt;action android:name="com.android.vending.INSTALL_REFERRER" /&gt;
    &lt;/intent-filter&gt;
    &lt;/receiver&gt;
    &lt;/application&gt;
    &lt;uses-permission  android:name="android.permission.INTERNET" /&gt;
&lt;/manifest&gt;
</code></pre>

<p>code for java file...</p>

<pre><code>        public class AdmobtestActivity extends Activity {
        /** Called when the activity is first created. */
        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.main);

            AdManager.setTestDevices(new String[]{
                    AdManager.TEST_EMULATOR, 
                    "CF95DC53F383F9A836FD749F3EF439CD",
            });
        }
    }
</code></pre>

<p>error shows in setTestDevices and TEST_EMULATOR in.java file and nothing given in error..</p>
