Beispiel #1
0
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);

    setContentView(R.layout.gamescreen);
    game = (GameScreen) findViewById(R.id.gameview);
    game.setBackgroundDrawable(Theme.getBackground(getAssets()));
    game.setParent(this);
  }
Beispiel #2
0
 @Override
 protected void onResume() {
   super.onResume();
   game.setBackgroundDrawable(Theme.getBackground(getAssets()));
 }