Back to project page APO-DZ-Android.
The source code is released under:
MIT License
If you think the Android project APO-DZ-Android 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.upennapo.app.activity; //ww w. j av a 2 s .com import android.app.ActionBar; import android.os.Bundle; import android.support.v4.app.FragmentActivity; import org.upennapo.app.R; import org.upennapo.app.fragment.DirectoryFragment; public class DirectoryActivity extends FragmentActivity { public static final String SHEET_KEY = DirectoryFragment.SHEET_KEY; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_directory); final String directoryName = getIntent().getStringExtra(SHEET_KEY); final ActionBar actionBar = getActionBar(); if (actionBar != null) { actionBar.setTitle(directoryName); actionBar.setLogo(R.drawable.ab_logo_activity_directory); } if (savedInstanceState == null) { DirectoryFragment directory = new DirectoryFragment(); Bundle args = new Bundle(); args.putString(SHEET_KEY, directoryName); directory.setArguments(args); getSupportFragmentManager().beginTransaction() .add(R.id.container, directory) .commit(); } } @Override public boolean onNavigateUp() { finish(); return true; } }