diff options
author | Arne Schwabe <arne@rfc2549.org> | 2012-04-27 23:24:49 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2012-04-27 23:24:49 +0200 |
commit | 031186e74c9f174d05a09c4059def7bcbc558ac6 (patch) | |
tree | 8506351e5a3e9904c70c881b1d13b2a1d1030383 /src/de/blinkt/openvpn/Settings_Obscure.java | |
parent | 817812066576fb1e2fd627927ad5cfc7bf7c79d5 (diff) |
it is not getIntent() nor savedState nor other fancy stuff, getArgument() is what I want
Diffstat (limited to 'src/de/blinkt/openvpn/Settings_Obscure.java')
-rw-r--r-- | src/de/blinkt/openvpn/Settings_Obscure.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/de/blinkt/openvpn/Settings_Obscure.java b/src/de/blinkt/openvpn/Settings_Obscure.java new file mode 100644 index 00000000..83754663 --- /dev/null +++ b/src/de/blinkt/openvpn/Settings_Obscure.java @@ -0,0 +1,21 @@ +package de.blinkt.openvpn; + +import android.os.Bundle; +import android.preference.PreferenceFragment; +import android.preference.PreferenceManager; + +public class Settings_Obscure extends PreferenceFragment { + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + // Make sure default values are applied. In a real app, you would + // want this in a shared function that is used to retrieve the + // SharedPreferences wherever they are needed. + PreferenceManager.setDefaultValues(getActivity(), + R.xml.vpn_ipsettings, false); + + // Load the preferences from an XML resource + addPreferencesFromResource(R.xml.vpn_obscure); + } +}
\ No newline at end of file |