Back to project page android-blog.
The source code is released under:
MIT License
If you think the Android project android-blog 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 org.kevinmrohr.android_blog.activity; /*from w w w.j a v a2 s .co m*/ import android.app.Activity; import android.os.Bundle; import org.kevinmrohr.android_blog.R; import org.kevinmrohr.android_blog.fragments.BlogDetailFragment; import org.kevinmrohr.android_blog.model.BlogPost; public class BlogViewActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.blogview); BlogPost blogPost = (BlogPost) getIntent().getSerializableExtra("blogPost"); BlogDetailFragment detailFragment = (BlogDetailFragment) getFragmentManager().findFragmentById(R.id.blogDetailFrag); if (detailFragment != null && detailFragment.isInLayout()) { detailFragment.update(blogPost); } else { throw new RuntimeException("Something is very wrong. How can the detail activity not have the detail fragment!?!? Busted!"); } } }