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;
import android.content.SharedPreferences.Editor;

public class Main {
    public static final String USER_GUIDE_FILE_NAME = "guide";

    public static void setGuided(Context context) {
        SharedPreferences prefe = context.getSharedPreferences(USER_GUIDE_FILE_NAME, 0);
        Editor editor = prefe.edit();
        editor.putBoolean("isguide", true);
        editor.commit();
    }
}