No.
I just create AdView like.

<com.google.ads.AdView
        android:id="@+id/screen_admob_view"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_centerVertical="true"
        ads:adSize="BANNER"
        ads:adUnitId="MY_UNIT_ID"
        ads:loadAdOnCreate="true" 
        />

nothing else in Activity, because as per Admob doc, if you add 
line  ads:loadAdOnCreate="true" in your xml no need write any extra code in 
your activity.

On Wednesday, November 7, 2012 3:39:05 AM UTC+5:30, bob wrote:
>
> I bet you did something like this:
>
>     public void onReceiveAd(AdView adView)
>     {
>
> invalidateLayout();
>     }
>
>
>
> On Tuesday, November 6, 2012 5:42:20 AM UTC-6, Vivek Malavade wrote:
>>
>> Hi,
>> I have integrated admob in my app successfully.
>> I have listview of checkbox. When I select items of list with checkbox 
>> before admob ads appear, then its fine.
>> But as soon as ad comes (ie. onRecievedAds() called), the all checkboxes 
>> get resets.
>>
>>
>>
>> Why this happens.
>>
>> Thanks in advance.
>>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to