android - Add Admob banner to Screen -
can`t add admob banner usual:
// create ad. adview = new adview(this, adsize.banner, "*********************"); relativelayout layout = (relativelayout) findviewbyid(r.id.rel2); layout.addview(adview); adrequest adrequest = new adrequest(); adrequest.addtestdevice(adrequest.test_emulator); adview.loadad(adrequest);
but using:
public class mainmenuscreen extends screen { private adview adview; public mainmenuscreen(game game) { super(game); } ---------------------------- public class androidfastrenderview extends surfaceview implements runnable { androidgame game; bitmap framebuffer; .......
so how can use admob banner in new game app? if @ other code give me call)
Comments
Post a Comment