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:16:39 AM UTC+5:30, TreKing wrote:
>
> On Tue, Nov 6, 2012 at 5:42 AM, Vivek Malavade 
> <[email protected]<javascript:>
> > wrote:
>
>> But as soon as ad comes (ie. onRecievedAds() called), the all checkboxes 
>> get resets.
>> Why this happens.
>>
>
> There is a bug in your code. Without more details (like a small snippet of 
> sample code) it will be impossible to tell you more.
>
>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago 
> transit tracking app for Android-powered devices
>
>

-- 
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