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.preference.PreferenceManager;

public class Main {
    private static long diff = 0;

    /**
     * ??????????????????????
     */
    public static long readDiffTime(Context context) {
        if (diff == 0)
            diff = PreferenceManager.getDefaultSharedPreferences(context).getLong("diff", 0);
        return diff;
    }
}