We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c83e693 commit 31c2b4cCopy full SHA for 31c2b4c
utilcode/src/main/java/com/blankj/utilcode/utils/Utils.java
@@ -0,0 +1,29 @@
1
+package com.blankj.utilcode.utils;
2
+
3
+import android.content.Context;
4
5
+/**
6
+ * <pre>
7
+ * author: Blankj
8
+ * blog : http://blankj.com
9
+ * time : 16/12/08
10
+ * desc :
11
+ * </pre>
12
+ */
13
+public class Utils {
14
15
+ public static Context context;
16
17
+ private Utils() {
18
+ throw new UnsupportedOperationException("u can't instantiate me...");
19
+ }
20
21
+ /**
22
+ * 初始化工具类
23
+ *
24
+ * @param context 上下文
25
26
+ public static void init(Context context) {
27
+ Utils.context = context.getApplicationContext();
28
29
+}
0 commit comments