Пример #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);
  }