Back to project page XEndoPebble.
The source code is released under:
MIT License
If you think the Android project XEndoPebble 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 info.kaara.xposedendopebble; /*from ww w .j a v a 2 s. c o m*/ import android.app.Activity; import android.os.Bundle; import android.preference.PreferenceFragment; /** * Created by vermon on 20/07/14. */ public class SettingsActivity extends Activity { public static final String SPEED_PACE = "speed_pace"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Display the fragment as the main content. getFragmentManager().beginTransaction() .replace(android.R.id.content, new SettingsFragment()) .commit(); } public static class SettingsFragment extends PreferenceFragment { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getPreferenceManager().setSharedPreferencesMode(MODE_WORLD_READABLE); // Load the preferences from an XML resource addPreferencesFromResource(R.xml.preferences); } } }