title: Admob for Android Andengine Game
body: <p>I created an android game by andengine.And I wanna add Admob ad to the game.I used code which below.And I got an error which is in picture. <a href="http://s16.postimage.org/rz6fbr2l1/Untitled.png" rel="nofollow">http://s16.postimage.org/rz6fbr2l1/Untitled.png</a></p>
  
  <pre><code> &lt;activity android:name="com.google.ads.AdActivity"
            android:configChanges="keyboard|keyboardHidden|orientation"/&gt;
  </code></pre>
  
  <p>but i added in manifest like above.So what's the problem?</p>
  
  <pre><code> protected void onSetContentView() {
  
  
       final FrameLayout frameLayout = new FrameLayout(this);
       final FrameLayout.LayoutParams frameLayoutLayoutParams =
               new FrameLayout.LayoutParams(FrameLayout.LayoutParams.FILL_PARENT,
                                            FrameLayout.LayoutParams.FILL_PARENT);
  
       final AdView adView = new AdView(this, AdSize.BANNER, "PUBLISHER_ID");
  
       adView.refreshDrawableState();
       adView.setVisibility(AdView.VISIBLE);
       final FrameLayout.LayoutParams adViewLayoutParams =
               new FrameLayout.LayoutParams(FrameLayout.LayoutParams.WRAP_CONTENT,
                                            FrameLayout.LayoutParams.WRAP_CONTENT,
                                            Gravity.CENTER_HORIZONTAL|Gravity.TOP);
  
  
       AdRequest adRequest = new AdRequest();
       adView.loadAd(adRequest);
  
       this.mRenderSurfaceView = new RenderSurfaceView(this);
       mRenderSurfaceView.setRenderer(mEngine);
  
       final android.widget.FrameLayout.LayoutParams surfaceViewLayoutParams =
               new FrameLayout.LayoutParams(super.createSurfaceViewLayoutParams());
  
       frameLayout.addView(this.mRenderSurfaceView, surfaceViewLayoutParams);
       frameLayout.addView(adView, adViewLayoutParams);
  
       this.setContentView(frameLayout, frameLayoutLayoutParams);
   }
  </code></pre>