residual4life
Code is Art
Profile
Posts: 38
Reg: Sep 27, 2011
los angeles
380
04/17/12 09:27 PM (13 years ago)

xml parsing error with buzztouch 1.4 and admob integration.

Hi, I added the following code in my home.xml: </LinearLayout> <com.google.ads.AdView android:layout_height="wrap_content" android:id="@+id/adView" android:layout_width="wrap_content" ads:adUnitId="i_put_in_my_actual_id" ads:adSize="BANNER" ads:loadAdOnCreate="true" android:layout_alignParentBottom="true"> </com.google.ads.AdView> </RelativeLayout> Every time I add it I get this error: error: Error parsing XML: unbound prefix act_home.xml Please help, thanks!
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/18/12 04:35 AM (13 years ago)
Shouldn't the code be wrapped in a layout? Like: <LinearLayout> <com.google.ads.AdView android:layout_height="wrap_content" android:id="@+id/adView" android:layout_width="wrap_content" ads:adUnitId="i_put_in_my_actual_id" ads:adSize="BANNER" ads:loadAdOnCreate="true" android:layout_alignParentBottom="true"> </com.google.ads.AdView> </LinearLayout>
 
residual4life
Code is Art
Profile
Posts: 38
Reg: Sep 27, 2011
los angeles
380
like
04/18/12 06:23 PM (13 years ago)
Thanks, I found out the error.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.