Android Open Source - CleanLockscreen Clean Lockscreen Preference Activity






From Project

Back to project page CleanLockscreen.

License

The source code is released under:

GNU General Public License

If you think the Android project CleanLockscreen 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 gd.sec.cleanlockscreen;
/*from www .  jav a2  s  .c  om*/
import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.preference.PreferenceFragment;

public class CleanLockscreenPreferenceActivity extends PreferenceActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        // Display the fragment as the main content.
        getFragmentManager().beginTransaction()
                .replace(android.R.id.content, new CleanLockscreenPreferenceFragment())
                .commit();
    }

    public static class CleanLockscreenPreferenceFragment extends PreferenceFragment {
        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);

            getPreferenceManager().setSharedPreferencesMode(MODE_WORLD_READABLE);

            addPreferencesFromResource(R.xml.preferences);
        }
    }
}




Java Source Code List

gd.sec.cleanlockscreen.ApplicationTest.java
gd.sec.cleanlockscreen.CleanLockscreenPreferenceActivity.java
gd.sec.cleanlockscreen.CleanLockscreen.java