How to add banner in adroid application for android version-10
<p>I have developed a simple android "Banner" application to display banner but i have problem in my "Banner" application.</p>

<p>When i run the application on my android phone that uses Android version-10, it runs successfully, BUT in banner area(area reserved for to display banner) there is red color text which is "You must have AdActivity declared in AndroidManifest.xml with configChanges." </p>

<p>Please some body help me in the problem.</p>

<p>Banner.java</p>

<pre><code>   import com.google.ads.*;


import android.app.Activity;
import android.os.Bundle;
import android.widget.LinearLayout;

public class MyBannerActivity extends Activity {



    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

     // Look up the AdView as a resource and load a request.
        AdView adView = (AdView)this.findViewById(R.id.adView);
        adView.loadAd(new AdRequest());


    }
}
</code></pre>

<p>main.xml</p>

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




  &lt;com.google.ads.AdView android:id="@+id/adView"
                         android:layout_width="wrap_content"
                         android:layout_height="wrap_content"
                         ads:adUnitId="MY_AD_UNIT_ID"
                         ads:adSize="BANNER"
                         ads:testDevices="TEST_EMULATOR, TEST_DEVICE_ID"
                         ads:loadAdOnCreate="true"/&gt;


&lt;/LinearLayout&gt;
</code></pre>

<p>Banner Manifest</p>

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

    &lt;uses-sdk android:minSdkVersion="10"/&gt;

    &lt;application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" &gt;
        &lt;activity
            android:name=".MyBannerActivity"
            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;activity android:name="com.google.ads.AdActivity"/&gt;



            &lt;activity android:name="com.google.ads.AdActivity"
            android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode"/&gt;

        &lt;!-- android:configChanges="keyboard|keyboardHidden|orientation" --&gt;    



    &lt;/application&gt;

    &lt;uses-permission android:name="android.permission.INTERNET"/&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/&gt;


&lt;/manifest&gt;
</code></pre>
