0
我已經開發了cocos2d遊戲應用程序,在這裏當遊戲開始時目標開始從上到下下降,這裏沒有問題,在爲revmob(廣告頁)添加代碼後,目標不會下降在屏幕上,我曾與revmob代碼一切是正確的檢查,但不知道在哪裏出了問題,請看看我的問題,在此先感謝:)問題與cocos2d遊戲開始
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
// hide titlebar of application
// must be before setting the layout
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
// hide statusbar of Android
// could also be done later
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON,
WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
mGLSurfaceView = new CCGLSurfaceView(this);
setContentView(mGLSurfaceView);
revmob = RevMob.start(this, APPLICATION_ID);
displayRevMob();
CCDirector.sharedDirector().attachInView(mGLSurfaceView);
}
public void displayRevMob(){
revmob.showFullscreen(this);
}
}