Back to project page GeoCarDroid.
The source code is released under:
GNU General Public License
If you think the Android project GeoCarDroid 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.geocar.geocarconnect; /* w w w. jav a 2 s . co m*/ import android.content.Context; import android.content.SharedPreferences; import android.preference.PreferenceManager; public abstract class Settings { public static String ENABLE_SMS_SECURITY = "parent_security_preference"; public static String SMS_SECURITY_CODE = "sms_security_code"; public static boolean enableSMSSecurity(Context context){ SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context); return preferences.getBoolean(ENABLE_SMS_SECURITY, false); } public static String getSMSSecurityCode(Context context){ SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context); return preferences.getString( SMS_SECURITY_CODE , ""); } }