Back to project page epgreader-android.
The source code is released under:
Apache License
If you think the Android project epgreader-android 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.jeffpalm.android.epg.app; //w w w .j a v a 2s. c o m import com.jeffpalm.android.epg.app.R; import android.content.Context; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; public final class EPGReaderSharedPrefs { private EPGReaderSharedPrefs() { } public final static String PREFS_NAME = "egp.prefs"; public static String getEpgUrl(Context context) { SharedPreferences prefs = context.getSharedPreferences(PREFS_NAME, 0); return prefs.getString(context.getString(R.string.pref_epg_url), EPGReaderConstants.DATA_URL); } public static void setEpgUrl(Context context, String newValue) { SharedPreferences prefs = context.getSharedPreferences(PREFS_NAME, 0); Editor prefsEditor = prefs.edit(); prefsEditor.putString(context.getString(R.string.pref_epg_url), newValue); prefsEditor.commit(); } }