update:2020.12.25

fix:新后台对接完成
add:
This commit is contained in:
2020-12-25 11:09:47 +08:00
parent 4d1eafae8c
commit 79ea8888c1
80 changed files with 3636 additions and 12151 deletions

View File

@@ -2,11 +2,9 @@ package com.info.sn.service;
import android.app.Service;
import android.content.Intent;
import android.os.Handler;
import android.os.IBinder;
import android.os.Message;
import com.info.sn.network.api.HTTPInterface;
import com.info.sn.KeepAliveConnection;
public class InitJpushServer extends Service {
public InitJpushServer() {
@@ -17,7 +15,8 @@ public class InitJpushServer extends Service {
public IBinder onBind(Intent intent) {
// TODO: Return the communication channel to the service.
// throw new UnsupportedOperationException("Not yet implemented");
return null;
return new KeepAliveConnection.Stub() {
};
}
@@ -28,16 +27,7 @@ public class InitJpushServer extends Service {
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
HTTPInterface.checkDevicesInfo(InitJpushServer.this);
// HTTPInterface.checkDevicesInfo(InitJpushServer.this);
return START_STICKY;
}
private Handler mHandler = new Handler() {
@Override
public void handleMessage(Message msg) {
super.handleMessage(msg);
}
};
}