Android Open Source - appboy-android-sdk Shared Prefs Util

From Project

Back to project page appboy-android-sdk.


The source code is released under:

Copyright (c) 2014 Appboy, Inc. All rights reserved. * Use of source code or binaries contained within Appboy's Android SDK is permitted only to enable use of the Appboy platform by customers of Appb...

If you think the Android project appboy-android-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.appboy.sample.util;
//w w  w. j a  v  a  2s . co  m
import android.annotation.TargetApi;
import android.content.SharedPreferences;

public class SharedPrefsUtil {
  public static final String SharedPrefsFilename = "com.appboy.sample.sharedpreferences";

  public static final String API_KEY_STATUS_KEY = "com_appboy_api_key_status";

  // A simple method to commit a sharedPreference file.
  public static void persist(SharedPreferences.Editor editor) {
    if (android.os.Build.VERSION.SDK_INT < 9) {
    } else {

Java Source Code List