Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.content.Context;

import android.content.SharedPreferences.Editor;

public class Main {
    private static final String PREF_NAME = "toppatch";
    private static final String SAMSUNG_ESDK = "samsung_esdk";

    public static void setSamsungESDKEnabled(Context context, Boolean value) {
        Editor edit = context.getSharedPreferences(PREF_NAME, Context.MODE_PRIVATE).edit();
        edit.putBoolean(SAMSUNG_ESDK, value);
        edit.commit();
    }
}