Android Context Get getLongSPR(String key, Context context)

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

Description

get Long SPR

Declaration

public static Long getLongSPR(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 Long getLongSPR(String key, Context context) {
        SharedPreferences preferences = PreferenceManager
                .getDefaultSharedPreferences(context);
        return preferences.getLong(key, Long.MAX_VALUE);
    }/*w w  w .  j  a v a 2  s . c o  m*/
}

Related

  1. getLastKnownLocation(Context context)
  2. getLineErrorPaint(Context context)
  3. getLinePaint(Context context)
  4. getLineThickness(Context context)
  5. getLocationProvider(Context context)
  6. getMemoryClass(Context context)
  7. getMinFontSize(Context context)
  8. getMobilityPackageInfo(Context context)
  9. getMobilityVersion(Context context)