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 IS_GUIDED = "is_guided";

    public static void setGuided(Context context) {
        SharedPreferences pref = context.getSharedPreferences(context.getPackageName() + "_preferences", 0);
        pref.edit().putBoolean(IS_GUIDED, true).commit();
    }
}