Back to project page smsgateway-android.
The source code is released under:
GNU General Public License
If you think the Android project smsgateway-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.nubgames.smsgateway; //from w w w. j av a 2s . co m import android.content.ContentResolver; import android.content.Context; import android.os.Bundle; import android.preference.PreferenceActivity; import android.preference.PreferenceManager; import android.provider.Settings.Secure; public class Settings extends PreferenceActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.settings); } public static String getQueueName(Context context) { return PreferenceManager.getDefaultSharedPreferences(context).getString("queue", ""); } public static String getPhoneID(ContentResolver resolver) { return Secure.getString(resolver, Secure.ANDROID_ID); } public static boolean getStartup(Context context) { return PreferenceManager.getDefaultSharedPreferences(context).getBoolean("startup", false); } public static String getServer(Context context) { return PreferenceManager.getDefaultSharedPreferences(context).getString("server", "mycustomercloud.com"); } }