Android Open Source - android-crackme-challenge Challenge Activity






From Project

Back to project page android-crackme-challenge.

License

The source code is released under:

MIT License

If you think the Android project android-crackme-challenge 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 com.reoky.crackme.challengefour.activities;
// w  w  w. ja  v  a 2s. c  om
import android.app.FragmentTransaction;
import android.os.Bundle;
import android.app.ActionBar;
import android.support.v4.app.FragmentActivity;
import android.support.v4.view.ViewPager;
import android.view.WindowManager;

import com.reoky.crackme.challengefour.R;
import com.reoky.crackme.challengefour.adaptors.ChallengePagerAdapter;
import com.reoky.crackme.challengefour.listeners.ChallengeActivityOnPageChangeListener;

public class ChallengeActivity extends FragmentActivity implements ActionBar.TabListener {

    ChallengePagerAdapter mChallengePagerAdapter;
    ViewPager mViewPager;
    ActionBar actionBar;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_challenge);

        mChallengePagerAdapter = new ChallengePagerAdapter(getSupportFragmentManager());
        actionBar = getActionBar();

        // Configure the action barW
        actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
        actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);

        // Configure the ViewPager and attach a
        mViewPager = (ViewPager) findViewById(R.id.container);
        mViewPager.setAdapter(mChallengePagerAdapter);
        mViewPager.setOnPageChangeListener(new ChallengeActivityOnPageChangeListener(actionBar));

        // Load a tab for each section
        actionBar.addTab(actionBar.newTab().setText("Challenge").setTabListener(this));
        actionBar.addTab(actionBar.newTab().setText("Hint").setTabListener(this));
        actionBar.addTab(actionBar.newTab().setText("About").setTabListener(this));

        // Hide the soft keyboard
        getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);
    }

    @Override
    public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {
        mViewPager.setCurrentItem(tab.getPosition()); // Tell ViewPager to change fragments
    }

    @Override
    public void onTabUnselected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {}

    @Override
    public void onTabReselected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {}
}




Java Source Code List

com.reoky.crackme.challengeeight.activities.ChallengeActivity.java
com.reoky.crackme.challengeeight.adaptors.ChallengePagerAdapter.java
com.reoky.crackme.challengeeight.fragments.AboutFragment.java
com.reoky.crackme.challengeeight.fragments.ChallengeEightFragment.java
com.reoky.crackme.challengeeight.fragments.HintFragment.java
com.reoky.crackme.challengeeight.listeners.AboutFragmentOnClickListener.java
com.reoky.crackme.challengeeight.listeners.ChallengeActivityOnPageChangeListener.java
com.reoky.crackme.challengeeight.listeners.ChallengeEightFragmentOnClickListener.java
com.reoky.crackme.challengeeight.listeners.HintFragmentOnCheckedChangeListener.java
com.reoky.crackme.challengefive.activities.ChallengeActivity.java
com.reoky.crackme.challengefive.adaptors.ChallengePagerAdapter.java
com.reoky.crackme.challengefive.fragments.AboutFragment.java
com.reoky.crackme.challengefive.fragments.ChallengeFiveFragment.java
com.reoky.crackme.challengefive.fragments.HintFragment.java
com.reoky.crackme.challengefive.listeners.AboutFragmentOnClickListener.java
com.reoky.crackme.challengefive.listeners.ChallengeActivityOnPageChangeListener.java
com.reoky.crackme.challengefive.listeners.ChallengeFiveFragmentOnClickListener.java
com.reoky.crackme.challengefive.listeners.HintFragmentOnCheckedChangeListener.java
com.reoky.crackme.challengefour.activities.ChallengeActivity.java
com.reoky.crackme.challengefour.adaptors.ChallengePagerAdapter.java
com.reoky.crackme.challengefour.fragments.AboutFragment.java
com.reoky.crackme.challengefour.fragments.ChallengeFourFragment.java
com.reoky.crackme.challengefour.fragments.HintFragment.java
com.reoky.crackme.challengefour.listeners.AboutFragmentOnClickListener.java
com.reoky.crackme.challengefour.listeners.ChallengeActivityOnPageChangeListener.java
com.reoky.crackme.challengefour.listeners.ChallengeFourFragmentOnClickListener.java
com.reoky.crackme.challengefour.listeners.HintFragmentOnCheckedChangeListener.java
com.reoky.crackme.challengenine.activities.ChallengeActivity.java
com.reoky.crackme.challengenine.adaptors.ChallengePagerAdapter.java
com.reoky.crackme.challengenine.fragments.AboutFragment.java
com.reoky.crackme.challengenine.fragments.ChallengeNineFragment.java
com.reoky.crackme.challengenine.fragments.HintFragment.java
com.reoky.crackme.challengenine.listeners.AboutFragmentOnClickListener.java
com.reoky.crackme.challengenine.listeners.ChallengeActivityOnPageChangeListener.java
com.reoky.crackme.challengenine.listeners.ChallengeNineFragmentOnClickListener.java
com.reoky.crackme.challengenine.listeners.HintFragmentOnCheckedChangeListener.java
com.reoky.crackme.challengeone.activities.ChallengeActivity.java
com.reoky.crackme.challengeone.adaptors.ChallengePagerAdapter.java
com.reoky.crackme.challengeone.fragments.AboutFragment.java
com.reoky.crackme.challengeone.fragments.ChallengeOneFragment.java
com.reoky.crackme.challengeone.fragments.HintFragment.java
com.reoky.crackme.challengeone.listeners.AboutFragmentOnClickListener.java
com.reoky.crackme.challengeone.listeners.ChallengeActivityOnPageChangeListener.java
com.reoky.crackme.challengeone.listeners.ChallengeOneFragmentOnClickListener.java
com.reoky.crackme.challengeone.listeners.HintFragmentOnCheckedChangeListener.java
com.reoky.crackme.challengeseven.activities.ChallengeActivity.java
com.reoky.crackme.challengeseven.adaptors.ChallengePagerAdapter.java
com.reoky.crackme.challengeseven.fragments.AboutFragment.java
com.reoky.crackme.challengeseven.fragments.ChallengeSevenFragment.java
com.reoky.crackme.challengeseven.fragments.HintFragment.java
com.reoky.crackme.challengeseven.listeners.AboutFragmentOnClickListener.java
com.reoky.crackme.challengeseven.listeners.ChallengeActivityOnPageChangeListener.java
com.reoky.crackme.challengeseven.listeners.ChallengeSevenFragmentOnClickListener.java
com.reoky.crackme.challengeseven.listeners.HintFragmentOnCheckedChangeListener.java
com.reoky.crackme.challengesix.activities.ChallengeActivity.java
com.reoky.crackme.challengesix.adaptors.ChallengePagerAdapter.java
com.reoky.crackme.challengesix.fragments.AboutFragment.java
com.reoky.crackme.challengesix.fragments.ChallengeSixFragment.java
com.reoky.crackme.challengesix.fragments.HintFragment.java
com.reoky.crackme.challengesix.listeners.AboutFragmentOnClickListener.java
com.reoky.crackme.challengesix.listeners.ChallengeActivityOnPageChangeListener.java
com.reoky.crackme.challengesix.listeners.ChallengeSixFragmentOnClickListener.java
com.reoky.crackme.challengesix.listeners.HintFragmentOnCheckedChangeListener.java
com.reoky.crackme.challengeten.activities.ChallengeActivity.java
com.reoky.crackme.challengeten.adaptors.ChallengePagerAdapter.java
com.reoky.crackme.challengeten.fragments.AboutFragment.java
com.reoky.crackme.challengeten.fragments.ChallengeTenFragment.java
com.reoky.crackme.challengeten.fragments.HintFragment.java
com.reoky.crackme.challengeten.listeners.AboutFragmentOnClickListener.java
com.reoky.crackme.challengeten.listeners.ChallengeActivityOnPageChangeListener.java
com.reoky.crackme.challengeten.listeners.ChallengeTenFragmentOnClickListener.java
com.reoky.crackme.challengeten.listeners.HintFragmentOnCheckedChangeListener.java
com.reoky.crackme.challengethree.activities.ChallengeActivity.java
com.reoky.crackme.challengethree.adaptors.ChallengePagerAdapter.java
com.reoky.crackme.challengethree.fragments.AboutFragment.java
com.reoky.crackme.challengethree.fragments.ChallengeThreeFragment.java
com.reoky.crackme.challengethree.fragments.HintFragment.java
com.reoky.crackme.challengethree.listeners.AboutFragmentOnClickListener.java
com.reoky.crackme.challengethree.listeners.ChallengeActivityOnPageChangeListener.java
com.reoky.crackme.challengethree.listeners.ChallengeThreeFragmentOnClickListener.java
com.reoky.crackme.challengethree.listeners.HintFragmentOnCheckedChangeListener.java
com.reoky.crackme.challengethree.model.PageSearchBundle.java
com.reoky.crackme.challengethree.tasks.PageSearch.java
com.reoky.crackme.challengetwo.activities.ChallengeActivity.java
com.reoky.crackme.challengetwo.adaptors.ChallengePagerAdapter.java
com.reoky.crackme.challengetwo.fragments.AboutFragment.java
com.reoky.crackme.challengetwo.fragments.ChallengeTwoFragment.java
com.reoky.crackme.challengetwo.fragments.HintFragment.java
com.reoky.crackme.challengetwo.listeners.AboutFragmentOnClickListener.java
com.reoky.crackme.challengetwo.listeners.ChallengeActivityOnPageChangeListener.java
com.reoky.crackme.challengetwo.listeners.ChallengeTwoFragmentOnClickListener.java
com.reoky.crackme.challengetwo.listeners.HintFragmentOnCheckedChangeListener.java
com.reoky.crackme.challengetwo.util.Digest.java