Back to project page android-gps-test-tool.
The source code is released under:
Apache License ? 2.0 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by...
If you think the Android project android-gps-test-tool 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.agup.gps; //from w ww .ja va 2s . co m import android.os.Bundle; import android.preference.PreferenceActivity; import android.preference.PreferenceFragment; public class SettingsActivity extends PreferenceActivity { @Override public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); //addPreferencesFromResource(R.xml.preferences); //deprecated in v1.3 getFragmentManager().beginTransaction().replace(android.R.id.content, new SettingsFragment()).commit(); } public static class SettingsFragment extends PreferenceFragment{ @Override public void onCreate(final Bundle savedInstanceState){ super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.preferences); } } }