修改动态和部分我的界面

This commit is contained in:
被淹死的鱼
2026-03-17 20:24:06 +08:00
parent 48f01f0942
commit b03b04dad5
1166 changed files with 10063 additions and 6325 deletions

View File

@@ -0,0 +1,26 @@
package com.xuebiping.bolizhuzi.utils;
import android.content.Context;
import android.content.SharedPreferences;
/**
* Created by zhangbin on 2018/12/22.
*/
public class LongSpUtils {
private final static String name = "long";
private final static int mode = Context.MODE_PRIVATE;
public static void saveLong(Context context, String key, long value){
SharedPreferences sp = context.getSharedPreferences(name, mode);
SharedPreferences.Editor edit = sp.edit();
edit.putLong(key, value);
edit.commit();
}
public static long getLong(Context context, String key) {
SharedPreferences sp = context.getSharedPreferences(name, mode);
return sp.getLong(key, 0);
}
}