|
|
|
@ -63,18 +63,6 @@ public class MyApplication extends Application { |
|
|
|
public static long lastClickTime = 0;// 最后点击时间
|
|
|
|
public static int clickTimes = 0;// 累计点击次数
|
|
|
|
|
|
|
|
private String[] strArray = { |
|
|
|
"89b5da46d6c6cca7", |
|
|
|
"19a2ebc079d6d99e", |
|
|
|
"f5dc70f20c95f1f4", |
|
|
|
"7e461926873d6539", |
|
|
|
"b9b62e65faa1280e", |
|
|
|
"a51794a775b788cd", |
|
|
|
"af20b0bc2c9a407a", |
|
|
|
"a412030c8a30aced", |
|
|
|
"dba5341b80e3705d", |
|
|
|
"6327c7bac38ed8e6" |
|
|
|
}; |
|
|
|
private Lztek lztek = null; |
|
|
|
private SmdtManagerNew smdt = null; |
|
|
|
|
|
|
|
@ -107,14 +95,10 @@ public class MyApplication extends Application { |
|
|
|
private void initSbcSDK(){ |
|
|
|
// 产品认证需设置 apiKey, productId, productKey, productSecret
|
|
|
|
DUILiteConfig config = new DUILiteConfig.Builder() |
|
|
|
.setApiKey("3ac5b2151aab3ac5b2151aab692e463b") |
|
|
|
.setProductId("279633115") |
|
|
|
.setProductKey("f08d7e0da576f89fedc67bbf44e2e2d6") |
|
|
|
.setProductSecret("25846304a956fd09b14de16cbf3832b0").create(); |
|
|
|
|
|
|
|
Random random = new Random(); |
|
|
|
int randomIndex = random.nextInt(strArray.length); |
|
|
|
config.setExtraParameter("DEVICE_NAME", strArray[randomIndex]); |
|
|
|
.setApiKey("89b6f826d3e089b6f826d3e0698ada53") |
|
|
|
.setProductId("279633839") |
|
|
|
.setProductKey("d4bfa88fc2b5848c98cbc556f8feba86") |
|
|
|
.setProductSecret("69d9404df876a01662d2e1218fcea6c5").create(); |
|
|
|
|
|
|
|
DUILiteSDK.init(getApplicationContext()); |
|
|
|
// SDK 授权
|
|
|
|
|