Android Open Source - TipCalculator.Android Settings Activity






From Project

Back to project page TipCalculator.Android.

License

The source code is released under:

MIT License

If you think the Android project TipCalculator.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 net.alteridem.tipcalculator;
/*  w w w.  j  a v a  2 s. c om*/
import android.os.Bundle;
import android.preference.PreferenceActivity;

import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.OptionsItem;

@EActivity
public class SettingsActivity extends PreferenceActivity {

    @SuppressWarnings("deprecation")
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getPreferenceManager().setSharedPreferencesName("AppSettings");
        addPreferencesFromResource(R.xml.settings);
    }

    @OptionsItem
    void homeSelected() {
        finish();
        overridePendingTransition(R.anim.push_right_in, R.anim.push_right_out);
    }

    @Override
    public void onBackPressed() {
        super.onBackPressed();
        overridePendingTransition(R.anim.push_right_in, R.anim.push_right_out);
    }
}




Java Source Code List

net.alteridem.tipcalculator.AppSettings.java
net.alteridem.tipcalculator.ApplicationTest.java
net.alteridem.tipcalculator.SettingsActivity.java
net.alteridem.tipcalculator.TipActivity.java
net.alteridem.tipcalculator.utilites.Calculator.java
net.alteridem.tipcalculator.utilites.PlayStore.java