34 lines
770 B
Java
34 lines
770 B
Java
package com.info.sn.service;
|
|
|
|
import android.app.Service;
|
|
import android.content.Intent;
|
|
import android.os.IBinder;
|
|
|
|
import com.info.sn.KeepAliveConnection;
|
|
|
|
public class InitJpushServer extends Service {
|
|
public InitJpushServer() {
|
|
|
|
}
|
|
|
|
@Override
|
|
public IBinder onBind(Intent intent) {
|
|
// TODO: Return the communication channel to the service.
|
|
// throw new UnsupportedOperationException("Not yet implemented");
|
|
return new KeepAliveConnection.Stub() {
|
|
};
|
|
}
|
|
|
|
|
|
@Override
|
|
public void onCreate() {
|
|
super.onCreate();
|
|
}
|
|
|
|
@Override
|
|
public int onStartCommand(Intent intent, int flags, int startId) {
|
|
// HTTPInterface.checkDevicesInfo(InitJpushServer.this);
|
|
return START_STICKY;
|
|
}
|
|
}
|