|
|
|
@ -6,6 +6,7 @@ import android.content.Context; |
|
|
|
import android.content.Intent; |
|
|
|
import android.hardware.display.DisplayManager; |
|
|
|
import android.os.Handler; |
|
|
|
import android.os.Looper; |
|
|
|
import android.os.Message; |
|
|
|
import android.util.Log; |
|
|
|
import android.view.Display; |
|
|
|
@ -63,6 +64,7 @@ import qianmu.container.util.AppUtil; |
|
|
|
import qianmu.container.util.BitmapUtil; |
|
|
|
import qianmu.container.util.CalendarUtils; |
|
|
|
import qianmu.container.util.DeviceUtil; |
|
|
|
import qianmu.container.util.FileUtil; |
|
|
|
import qianmu.container.util.GsonUtil; |
|
|
|
import qianmu.container.util.LoggerUtil; |
|
|
|
import qianmu.container.util.SignWayUtil; |
|
|
|
@ -90,7 +92,7 @@ public class ScreenSaverActivity extends BaseActivity { |
|
|
|
static final int NOVA_HINT = 4;// 隐藏密码输入框
|
|
|
|
static final int SHOW_JXB = 5;// 机械臂轮播
|
|
|
|
String TB40_password = "SN2008@+";// 华贸SN2008@+
|
|
|
|
|
|
|
|
private Handler mainHandler = new Handler(Looper.getMainLooper()); |
|
|
|
int time = 0; |
|
|
|
int jxbPlayNum = 0; |
|
|
|
Handler handler = new Handler() { |
|
|
|
@ -133,7 +135,6 @@ public class ScreenSaverActivity extends BaseActivity { |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
@ -436,7 +437,6 @@ public class ScreenSaverActivity extends BaseActivity { |
|
|
|
* 华贸led设备 |
|
|
|
*/ |
|
|
|
String sn; |
|
|
|
|
|
|
|
public void initNova() { |
|
|
|
String companyInfo = "{\"company\":\"NovaStar\",\"phone\":\"029-68216000\",\"email\":\"hr@novastar.tech\"}"; |
|
|
|
instance.nvSetDevLang("Java"); |
|
|
|
@ -458,14 +458,12 @@ public class ScreenSaverActivity extends BaseActivity { |
|
|
|
|
|
|
|
// TB40 华贸SN2008@+ 江湾里123456
|
|
|
|
public void login(String cmd) { |
|
|
|
LoggerUtil.e("QHT: ","登录"); |
|
|
|
instance.nvLoginAsync("{\"sn\":\"" + sn + "\",\"username\":\"admin\",\"rememberPwd\":1,\"password\":\"" |
|
|
|
+ TB40_password + "\",\"loginType\":0}", new ViplexCore.CallBack() { |
|
|
|
@Override |
|
|
|
public void dataCallBack(int code, String data) { |
|
|
|
LoggerUtil.e("QHT: 登录1: ", "code: " + code + "data: " + data); |
|
|
|
if(code == 65300){ |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
instance.nvLoginAsync("{\"sn\":\"" + sn + "\",\"username\":\"admin\",\"rememberPwd\":1,\"password\":\"" |
|
|
|
|