我正在尝试为我的游戏创建一个页面,您可以在其中查看最新的高分。目前,当我尝试运行此程序时,我的程序崩溃,我无法弄清楚原因。任何帮助都会很棒!
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.high_score);
TextView highscore = (TextView) findViewById(R.id.high_scores);
highscore.setText(GamePanel.highScore);
//set to full screen
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
}