2011-02-01 14 views
2

AdViewに問題があります。私はこの見解に活動を開始し、何かが永遠のループに行くと、私は、ログappearenceの多くを見るように見える時:Android + AdMobの問題

02-01 21:57:34.437: WARN/AdMobSDK(29740): Ignoring requestFreshAd() because we are requesting an ad right now already. 
02-01 21:57:34.512: WARN/AdMobSDK(29740): Ignoring requestFreshAd() because we are requesting an ad right now already. 
02-01 21:57:34.512: WARN/AdMobSDK(29740): Ignoring requestFreshAd() because we are requesting an ad right now already. 
02-01 21:57:34.587: WARN/AdMobSDK(29740): Ignoring requestFreshAd() because we are requesting an ad right now already. 
02-01 21:57:34.587: WARN/AdMobSDK(29740): Ignoring requestFreshAd() because we are requesting an ad right now already. 
02-01 21:57:34.657: WARN/AdMobSDK(29740): Ignoring requestFreshAd() because we are requesting an ad right now already. 
02-01 21:57:34.657: WARN/AdMobSDK(29740): Ignoring requestFreshAd() because we are requesting an ad right now already. 
02-01 21:57:34.727: WARN/AdMobSDK(29740): Ignoring requestFreshAd() because we are requesting an ad right now already. 
02-01 21:57:34.727: WARN/AdMobSDK(29740): Ignoring requestFreshAd() because we are requesting an ad right now already. 
02-01 21:57:34.797: WARN/AdMobSDK(29740): Ignoring requestFreshAd() because we are requesting an ad right now already. 
02-01 21:57:34.802: WARN/AdMobSDK(29740): Ignoring requestFreshAd() because we are requesting an ad right now already. 
02-01 21:57:34.872: WARN/AdMobSDK(29740): Ignoring requestFreshAd() because we are requesting an ad right now already. 
02-01 21:57:34.887: WARN/AdMobSDK(29740): Ignoring requestFreshAd() because we are requesting an ad right now already. 
02-01 21:57:35.002: WARN/AdMobSDK(29740): Ignoring requestFreshAd() because we are requesting an ad right now already. 
02-01 21:57:35.092: WARN/AdMobSDK(29740): Ignoring requestFreshAd() because we are requesting an ad right now already. 
02-01 21:57:35.092: WARN/AdMobSDK(29740): Ignoring requestFreshAd() because we are requesting an ad right now already. 
02-01 21:57:35.172: WARN/AdMobSDK(29740): Ignoring requestFreshAd() because we are requesting an ad right now already. 
02-01 21:57:35.172: WARN/AdMobSDK(29740): Ignoring requestFreshAd() because we are requesting an ad right now already. 
02-01 21:57:35.267: WARN/AdMobSDK(29740): Ignoring requestFreshAd() because we are requesting an ad right now already. 
02-01 21:57:35.267: WARN/AdMobSDK(29740): Ignoring requestFreshAd() because we are requesting an ad right now already. 
02-01 21:57:35.527: WARN/AdMobSDK(29740): Ignoring requestFreshAd() because we are requesting an ad right now already. 

この1のレイアウトもここで多くの多くの多くの時間

です

<?xml version="1.0" encoding="utf-8"?> 
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
       xmlns:sac="http://schemas.android.com/apk/res/com.myapp" 
       android:orientation="vertical" android:layout_width="fill_parent" 
       android:layout_height="fill_parent"> 

    <com.google.android.maps.MapView 
      android:id="@+id/mapview" android:layout_width="fill_parent" 
      android:layout_height="fill_parent" android:clickable="true" 
      android:apiKey="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" /> 

    <Button android:layout_width="wrap_content" android:id="@+id/bFlashLight" 
      android:lines="1" android:ellipsize="end" android:textSize="18sp" 
      android:layout_height="wrap_content" android:padding="10dp" 
      android:textColor="#000" android:drawablePadding="10dp" 
      android:gravity="center" android:layout_alignBottom="@id/mapview" 
      android:text="@string/open_flashlight" /> 

    <ZoomControls android:id="@+id/zoomcontrols" 
        android:layout_width="wrap_content" android:layout_height="wrap_content" 
        android:layout_toRightOf="@id/bFlashLight" android:layout_alignBottom="@id/mapview" /> 

    <com.admob.android.ads.AdView android:id="@+id/ad" 
            android:layout_width="fill_parent" android:layout_height="wrap_content" 
            sac:backgroundColor="#000000" sac:primaryTextColor="#FFFFFF" 
            sac:secondaryTextColor="#CCCCCC" android:layout_alignParentTop="true" /> 
</RelativeLayout> 

requestFreshAd()メソッドの自動呼び出しを無効にする方法はありますか?

+0

の更新によりresoviedた別の線形レイアウトを選択し、手動でコードには広告を呼んでいますまたはあなたはXMLを使用していますか?また、外部レイアウトはどのように見えますか、それらはすべて線形レイアウトのパーティーですか? – sgarman

+0

直接コードでは、xmlだけが追加されます。ルートコンテナはRelativeLayoutです。 – endryha

答えて

0

問題は、ライブラリ

3

はちょうどこのコードを追加して、AdMobのサイトやウルコードファイルのタイム言及を更新し、その作業

<LinearLayout 
     xmlns:myapp="http://schemas.android.com/apk/res/com.myapp" 
     android:orientation="vertical" 
     android:layout_width="fill_parent" 
     android:gravity="center_horizontal" 
     android:layout_height="wrap_content"> 
    <com.admob.android.ads.AdView 
     android:id="@+id/ad" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
      android:layout_gravity="center_horizontal"> 
     </com.admob.android.ads.AdView> 
</LinearLayout>