version:1.8

fix:应用数据统计
add:
This commit is contained in:
2021-12-25 16:39:43 +08:00
parent 7c3a035ca6
commit c9e72d00fb
7 changed files with 15 additions and 9 deletions

View File

@@ -80,13 +80,13 @@ public class MainService extends Service implements MainContact.MainView, Networ
@Override
public void onDisconnected() {
Log.e("OnNetworkStatusChangedListener", "onDisconnected: ");
Log.e("OnNetworkStatusChanged", "onDisconnected: ");
ToastUtil.betaShow("网络断开连接");
}
@Override
public void onConnected(NetworkUtils.NetworkType networkType) {
Log.e("OnNetworkStatusChangedListener", "onConnected: ");
Log.e("OnNetworkStatusChanged", "onConnected: ");
runningTime = SystemClock.elapsedRealtime();
//直接获取数据
ToastUtil.betaShow("网络已连接");
@@ -643,6 +643,7 @@ public class MainService extends Service implements MainContact.MainView, Networ
@Override
public void setLockedState(boolean loocked) {
Log.e(TAG, "netWorkIsRunning: " + netWorkIsRunning);
//发送设备mac地址和信息
mPresenter.sendMACAddress();
//设置极光推送别名
@@ -651,7 +652,6 @@ public class MainService extends Service implements MainContact.MainView, Networ
mPresenter.setJpushTags();
if (loocked) {
ToastUtil.betaShow("设备已上锁");
Log.e(TAG, "setLockedState: " + netWorkIsRunning);
//上传APP信息
ApkUtils.getAppInfo(this);
SaveListUtils.getList();