Back to project page UpcomingMoviesMVP.
The source code is released under:
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Defi...
If you think the Android project UpcomingMoviesMVP listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.jlmd.android.newfilmsmvp.ui.activity; /* w w w. jav a 2s. c o m*/ import android.app.Activity; import android.os.Bundle; import com.jlmd.android.newfilmsmvp.R; import com.jlmd.android.newfilmsmvp.domain.model.Movie; import com.jlmd.android.newfilmsmvp.ui.fragment.MovieDetailsFragment; import com.jlmd.android.newfilmsmvp.utils.Constants; /** * @author jlmd */ public class MovieDetailsActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_movie_details); initMovieDetailsFragment(getMovieFromBundle()); } private Movie getMovieFromBundle() { return getIntent().getExtras().getParcelable(Constants.KEY_MOVIE_DETAILS); } private void initMovieDetailsFragment(Movie movie) { MovieDetailsFragment movieDetailsFragment = MovieDetailsFragment.newInstance(movie); getFragmentManager() .beginTransaction() .replace(R.id.frm_movie_details, movieDetailsFragment) .disallowAddToBackStack() .commit(); } }