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 0ed04e8 commit a20f80dCopy full SHA for a20f80d
library/src/main/java/com/qiniu/android/collect/Config.java
@@ -72,5 +72,26 @@ public class Config {
72
/**
73
* 上传信息收集文件的地址
74
* */
75
- public static String serverURL = "https://api.qiniu.com/uplog";
+ public static String serverURL = "https://uplog.qbox.me/log";
76
+
77
+ /**
78
+ * 当网络切换到 wifi 下,使用此设置
79
+ * */
80
+ public static void quick() {
81
+ uploadThreshold = 1 * 1024;
82
+ interval = 2;
83
+ }
84
85
+ public static void normal() {
86
+ uploadThreshold = 4 * 1024;
87
+ interval = 5;
88
89
90
91
+ * 网络走流量时,可切换到此设置
92
93
+ public static void slow() {
94
+ uploadThreshold = 150 * 1024;
95
+ interval = 300;
96
97
}
0 commit comments