Back to project page photos.
The source code is released under:
MIT License
If you think the Android project photos 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.ericfarraro.photos.activities; /*w w w . j a v a2s . co m*/ import android.app.Activity; import android.app.ActionBar; import android.app.Fragment; import android.content.Intent; import android.os.Bundle; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import android.os.Build; import com.ericfarraro.photos.R; import com.ericfarraro.photos.fragments.PhotoDetailFragment; public class PhotoDetailActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_photo_detail); if (savedInstanceState == null) { PhotoDetailFragment fragment = new PhotoDetailFragment(); fragment.setArguments(getIntent().getExtras()); getFragmentManager().beginTransaction() .add(R.id.container, fragment) .commit(); } } }