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.util.Log;

public class Main {
    private static final String FILE_NAME = "fangdazhongmyName";
    private static final String MODE_NAME = "welcome";

    public static boolean isFirstStart(Context context) {

        Log.e("jhd", "SharedUtils-isFirstStart   :  "
                + context.getSharedPreferences(FILE_NAME, Context.MODE_PRIVATE).getBoolean(MODE_NAME, true));
        return context.getSharedPreferences(FILE_NAME, Context.MODE_PRIVATE).getBoolean(MODE_NAME, true);

    }
}