tag:blogger.com,1999:blog-7404948236949464696.post2225763459379191405..comments2016-02-24T10:04:02.734+02:00Comments on Coding Dump: Admob with Andenginegulyanhttp://www.blogger.com/profile/05995808716933619446noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-7404948236949464696.post-88700950459937399632016-02-24T10:04:02.734+02:002016-02-24T10:04:02.734+02:00Hi Andre,
Do have the solution for adSize issue?Hi Andre,<br /><br />Do have the solution for adSize issue?Anonymoushttps://www.blogger.com/profile/09352591695595413301noreply@blogger.comtag:blogger.com,1999:blog-7404948236949464696.post-79296745062502815252014-06-06T22:10:34.606+03:002014-06-06T22:10:34.606+03:00I followed all the steps of this tutorial but I...I followed all the steps of this tutorial but I'm having a problem. There is a message in the ad: Required XML attibute "adSize" was missing.<br />Can someone help?André Cândidohttps://www.blogger.com/profile/05626973262638150532noreply@blogger.comtag:blogger.com,1999:blog-7404948236949464696.post-49646846849892266752014-05-20T06:36:25.602+03:002014-05-20T06:36:25.602+03:00How to get Ads size?How to get Ads size?Anonymoushttps://www.blogger.com/profile/03369659081522460802noreply@blogger.comtag:blogger.com,1999:blog-7404948236949464696.post-64818977228809411492014-03-27T12:54:26.111+02:002014-03-27T12:54:26.111+02:00Hey guys, there is an error, probably something ch...Hey guys, there is an error, probably something changed cause this code snipped is a bit old. In game_layout.xml you chould change class location:<br /><br />from com.google.ads.AdView<br />to com.google.android.gms.ads.AdView<br /><br />This helped me a lot. Everything else is fine.Anonymoushttps://www.blogger.com/profile/02030848828857583798noreply@blogger.comtag:blogger.com,1999:blog-7404948236949464696.post-55667803584764550442014-03-13T03:19:18.848+02:002014-03-13T03:19:18.848+02:00Hi gulyan and thanks for your tutorial,
I have th...Hi gulyan and thanks for your tutorial,<br /><br />I have the same error as rohit (Error inflating class com.google.ads.AdView, and I added the admob activity in the manifest file like this : <br /><br />activity android:name="com.google.android.gms.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"<br /><br />But it still doesn't work, and I don't know what to do to solve this.SOSMATHShttps://www.blogger.com/profile/08290901313172593293noreply@blogger.comtag:blogger.com,1999:blog-7404948236949464696.post-26838446743633136512014-03-13T03:17:47.888+02:002014-03-13T03:17:47.888+02:00This comment has been removed by the author.SOSMATHShttps://www.blogger.com/profile/08290901313172593293noreply@blogger.comtag:blogger.com,1999:blog-7404948236949464696.post-10513040887644416962014-03-08T14:48:55.904+02:002014-03-08T14:48:55.904+02:00Already did that.
Infect I was using onsetcontentv...Already did that.<br />Infect I was using onsetcontentview method previously with FrameLayout.LayoutParams and it was showing the admob ads but the ads were coming of half height. And when i clicked on an ad went to the ad url then came back to the game by pressing back button the ad height was coming right. Tried to find solutions but nothing worked so thought of using this method. <br />I was using BaseGameActivity which now I changed to LayoutGameActivity as you told me. But app is crashing.rohithttps://www.blogger.com/profile/03142923485435604881noreply@blogger.comtag:blogger.com,1999:blog-7404948236949464696.post-28305138532827478462014-03-08T14:37:44.489+02:002014-03-08T14:37:44.489+02:00Make sure to add the admob activity in the manifes...Make sure to add the admob activity in the manifest file.gulyanhttps://www.blogger.com/profile/05995808716933619446noreply@blogger.comtag:blogger.com,1999:blog-7404948236949464696.post-60126041227736273302014-03-08T14:35:06.241+02:002014-03-08T14:35:06.241+02:00changed my GameActivity extends from BaseGameActiv...changed my GameActivity extends from BaseGameActivity to extend LayoutGameActivity and added the 2 layout methods. <br />The app is getting crashed now with following errors.<br /><br />03-08 18:00:00.968: E/AndroidRuntime(11035): java.lang.RuntimeException: Unable to start activity ComponentInfo{package/package.GameActivity}: android.view.InflateException: Binary XML file line #16: Error inflating class com.google.ads.AdView<br />rohithttps://www.blogger.com/profile/03142923485435604881noreply@blogger.comtag:blogger.com,1999:blog-7404948236949464696.post-52985443674334902042014-03-08T14:00:52.587+02:002014-03-08T14:00:52.587+02:00You need to extends LayoutGameActivity (which in t...You need to extends LayoutGameActivity (which in turn extends BaseGameActivity).<br />There you override the 2 methods that tell the layout and the game view.<br />gulyanhttps://www.blogger.com/profile/05995808716933619446noreply@blogger.comtag:blogger.com,1999:blog-7404948236949464696.post-55966709123474622692014-03-08T13:46:33.299+02:002014-03-08T13:46:33.299+02:00How to implement it exactly with BaseGameActivity?...How to implement it exactly with BaseGameActivity? <br />Do i just need to add<br />@Override<br /> protected int getLayoutID() {<br /> return R.layout.game_layout;<br /> }<br /> <br /> @Override<br /> protected int getRenderSurfaceViewID() {<br /> return R.id.SurfaceViewId;<br /> }<br /><br />in my gameactivity class which is extending BaseGameActivity?rohithttps://www.blogger.com/profile/03142923485435604881noreply@blogger.comtag:blogger.com,1999:blog-7404948236949464696.post-75111483379085740022013-12-10T22:54:43.615+02:002013-12-10T22:54:43.615+02:00Thank you so much, works fine. Thank you so much, works fine. Anonymoushttps://www.blogger.com/profile/03978581541511021373noreply@blogger.com