Back to project page Joetz-Android-V2.
The source code is released under:
GNU General Public License
If you think the Android project Joetz-Android-V2 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.example.jens.myapplication.camps; //from w w w . j a va 2 s . c om import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.view.MenuItem; import com.example.jens.myapplication.R; public class ImageActivity extends android.support.v4.app.FragmentActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_image); Fragment f = new ImagePagerFragment(); FragmentManager frgManager = getSupportFragmentManager() ; frgManager.beginTransaction().replace(R.id.content, f, "ImagePager").commit(); setTitle(R.string.photos); } @Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); if (id == android.R.id.home) { // This ID represents the Home or Up button. In the case of this this.finish(); return true; } return super.onOptionsItemSelected(item); } }