Search in sources :

Example 1 with SimpleGame

use of me.zhanghai.android.douya.network.api.info.frodo.SimpleGame in project Douya by DreaminginCodeZH.

the class GameActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    // Calls ensureSubDecor().
    findViewById(android.R.id.content);
    if (savedInstanceState == null) {
        Intent intent = getIntent();
        long gameId = intent.getLongExtra(EXTRA_GAME_ID, -1);
        SimpleGame simpleGame = intent.getParcelableExtra(EXTRA_SIMPLE_GAME);
        Game game = intent.getParcelableExtra(EXTRA_GAME);
        FragmentUtils.add(GameFragment.newInstance(gameId, simpleGame, game), this, android.R.id.content);
    }
}
Also used : SimpleGame(me.zhanghai.android.douya.network.api.info.frodo.SimpleGame) Game(me.zhanghai.android.douya.network.api.info.frodo.Game) SimpleGame(me.zhanghai.android.douya.network.api.info.frodo.SimpleGame) Intent(android.content.Intent)

Aggregations

Intent (android.content.Intent)1 Game (me.zhanghai.android.douya.network.api.info.frodo.Game)1 SimpleGame (me.zhanghai.android.douya.network.api.info.frodo.SimpleGame)1