Back to project page TipCalculator.Android.
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.
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); } }