Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

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

public class Main {
    private static final String PREFS_WIBMO_IAP_SDK = "IAP_SDK_PREF";
    private static final String PREF_HAS_ALARM_IAP_CANCEL_CODES = "IAP_REASON_FOR_CANCEL_FILE";

    public static void setReasonInDiskFlag(Context context, boolean flag) {
        SharedPreferences pref = context.getSharedPreferences(PREFS_WIBMO_IAP_SDK, Context.MODE_PRIVATE);
        SharedPreferences.Editor syncContactsEditor = pref.edit();
        syncContactsEditor.putBoolean(PREF_HAS_ALARM_IAP_CANCEL_CODES, flag);
        syncContactsEditor.commit();
    }
}