Back to project page Campaign-Manager-Code-Sample.
The source code is released under:
Apache License
If you think the Android project Campaign-Manager-Code-Sample 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 com.microsoft.campaignmanager; /*from ww w. ja v a 2 s . co m*/ import android.os.Bundle; import android.preference.PreferenceActivity; import android.preference.PreferenceFragment; import android.preference.PreferenceManager; // TODO: Auto-generated Javadoc /** * The Class OAuthTokensActivity. */ public class OAuthTokensActivity extends PreferenceActivity { /* (non-Javadoc) * @see android.preference.PreferenceActivity#onCreate(android.os.Bundle) */ @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getFragmentManager().beginTransaction() .replace(android.R.id.content, new PrefsFragment(), null).commit(); PreferenceManager.setDefaultValues(this, R.xml.oauth_tokens, false); } /** * The Class PrefsFragment. */ public static class PrefsFragment extends PreferenceFragment { /* (non-Javadoc) * @see android.preference.PreferenceFragment#onCreate(android.os.Bundle) */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.oauth_tokens); } } }