Android Context Get getIntSPR(String key, Context context)

Here you can find the source of getIntSPR(String key, Context context)

Description

get Int SPR

Declaration

public static int getIntSPR(String key, Context context) 

Method Source Code

//package com.java2s;

import android.content.Context;
import android.content.SharedPreferences;

import android.preference.PreferenceManager;

public class Main {
    public static int getIntSPR(String key, Context context) {
        SharedPreferences preferences = PreferenceManager
                .getDefaultSharedPreferences(context);
        return preferences.getInt(key, 0);
    }/* w  w  w.  ja va  2  s  . c o m*/
}

Related

  1. getFromAssets(Context con, String fileName)
  2. getHelpUrl(Context context, String s)
  3. getImei(Context context, String imei)
  4. getInstalleApps(Context mContext)
  5. getInstance(Context context)
  6. getLastKnownLocation(Context context)
  7. getLineErrorPaint(Context context)
  8. getLinePaint(Context context)
  9. getLineThickness(Context context)