update:2020.12.25
fix:新后台对接完成 add:
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user