Android Open Source - XEndoPebble Settings Activity






From Project

Back to project page XEndoPebble.

License

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.

Java Source Code

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);
        }
    }
}




Java Source Code List

info.kaara.xposedendopebble.EndoPebbleHook.java
info.kaara.xposedendopebble.Endomondo.java
info.kaara.xposedendopebble.PebbleSportsDataHandler.java
info.kaara.xposedendopebble.PebbleSports.java
info.kaara.xposedendopebble.SettingsActivity.java
info.kaara.xposedendopebble.UnitHelper.java