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;

public class Main {
    public static void setLValue(Context context, String strKey, long value) {

        SharedPreferences exam_info = context.getSharedPreferences("exam", 0);
        exam_info.edit().putLong(strKey, value).commit();
    }
}