Back to project page tinysmsgate.
The source code is released under:
GNU General Public License
If you think the Android project tinysmsgate 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 rocks.jahn.tinysmsgate; /*w ww .ja v a 2 s. c om*/ import rocks.jahn.smsgate.R; import android.os.Bundle; import android.preference.PreferenceActivity; import android.preference.PreferenceFragment; public class Preferences extends PreferenceActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getFragmentManager() .beginTransaction() .replace(android.R.id.content, new SMSGatePreferenceFragment()) .commit(); } public static class SMSGatePreferenceFragment extends PreferenceFragment { @Override public void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.smsgate_preferences); } } }