I try to show Admob on my SurfaceView.
- I use framework from book beginning android games from Mario Zechner
- In framework there is a class (AndroidFastRenderView extends SurfaceView implements Runnable) and in that class there is line canvas.drawBitmap(framebuffer, null, dstRect, null); where framebuffer is Bitmap where is all drawn in game.
- In that framework there is a class (AndroidGame extends Activity) where is line setContentView(renderView);
Here renderView is AndroidFastRenderView that is SurfaceView, Now I try to add Admob but I don't no how.
I can create Admob like this
AdView adView = new AdView(this, AdSize.BANNER, "MyID");
but where to add that view
Thanks for help.