use of me.zhanghai.android.douya.network.api.info.frodo.SimpleMovie in project Douya by DreaminginCodeZH.
the class MovieActivity 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 movieId = intent.getLongExtra(EXTRA_MOVIE_ID, -1);
SimpleMovie simpleMovie = intent.getParcelableExtra(EXTRA_SIMPLE_MOVIE);
Movie movie = intent.getParcelableExtra(EXTRA_MOVIE);
FragmentUtils.add(MovieFragment.newInstance(movieId, simpleMovie, movie), this, android.R.id.content);
}
}
Aggregations