Back to project page tpblogr.
The source code is released under:
MIT License
If you think the Android project tpblogr 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 blogr.vpm.fr.blogr.activity; /* www .ja v a 2 s . co m*/ import android.app.Activity; import android.os.Bundle; import blogr.vpm.fr.blogr.R; import blogr.vpm.fr.blogr.bean.Post; import blogr.vpm.fr.blogr.picture.PicturePickedListener; /** * Created by vince on 17/10/14. */ public class PostEditionActivity extends Activity implements PicturePickedListener { private PostEditionFragment postEditionFragment; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_post_edition); postEditionFragment = (PostEditionFragment) getFragmentManager().findFragmentById(R.id.postEditionFragment); setTitle(""); getActionBar().setDisplayHomeAsUpEnabled(true); if (getIntent().hasExtra(Post.INTENT_EXTRA_KEY)) { Post post = (Post) getIntent().getExtras().get(Post.INTENT_EXTRA_KEY); postEditionFragment.editPost(post); } } @Override public void onPicturePicked(String picUrl) { // This only delegates to the fragment postEditionFragment.onPicturePicked(picUrl); } }