Implementing Admob banner when setContentView() is used for the Surfaceview
问题 I am struggling to implement an admob banner into my app because the setContentView() method is used for the surfaceView called gameView so creating the adView in xml cannot be applied to this framework as setContentView is already being used. And I don't know how to do this programmatically. Does anyone have a solution to this? My main Activity: public class GameMainActivity extends BaseGameActivity { .... @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate