Android Open Source - APO-DZ-Android Directory Activity






From Project

Back to project page APO-DZ-Android.

License

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.

Java Source Code

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;
    }
}




Java Source Code List

org.upennapo.app.activity.AlumModeActivity.java
org.upennapo.app.activity.DirectoryActivity.java
org.upennapo.app.activity.DirectoryDetailsActivity.java
org.upennapo.app.activity.EasterEggActivity.java
org.upennapo.app.activity.LoginActivity.java
org.upennapo.app.activity.MainActivity.java
org.upennapo.app.activity.WebActivity.java
org.upennapo.app.adapter.AlphabeticalAdapter.java
org.upennapo.app.adapter.LinkAdapter.java
org.upennapo.app.fragment.AlumDirectoryFragment.java
org.upennapo.app.fragment.BrotherStatusFragment.java
org.upennapo.app.fragment.DirectoryFragment.java
org.upennapo.app.fragment.LinkListFragment.java
org.upennapo.app.fragment.NavigationDrawerFragment.java
org.upennapo.app.fragment.WebFragment.java
org.upennapo.app.model.Brother.java
org.upennapo.app.model.DataManager.java
org.upennapo.app.model.User.java