Back to project page mobcomp-httpclient.
The source code is released under:
Written by: Markus Tacker <m@coderbyheart.de> | http://coderbyheart.de/ Copyright (c) Markus Tacker Permission is hereby granted, free of charge, to any person obtaining a copy of this software and ...
If you think the Android project mobcomp-httpclient 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 de.hsrm.mi.mobcomp.httpclientdemo; //from ww w .j ava 2 s . c om import android.content.ContextWrapper; import android.content.SharedPreferences; import android.os.Bundle; import android.preference.PreferenceActivity; /** * Einstellungen fr die App anzeigen * * @author Markus Tacker <m@coderbyheart.de> */ public class PrefsActivity extends PreferenceActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.preferences); } public static final SharedPreferences getPreferences( final ContextWrapper context) { String name = context.getPackageName() + "_preferences"; return context.getSharedPreferences(name, MODE_PRIVATE); } }