@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); }
@Override protected void onResume() { super.onResume(); game.setBackgroundDrawable(Theme.getBackground(getAssets())); }