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);
}
}
Aggregations