|
|
@@ -24,6 +24,7 @@ import com.sheep.gamegroup.model.util.SheepSubscriber;
|
|
|
import com.sheep.gamegroup.util.CommonUtil;
|
|
|
import com.sheep.gamegroup.util.Jump2View;
|
|
|
import com.sheep.gamegroup.util.LocationUtils;
|
|
|
+import com.sheep.gamegroup.util.LogUtil;
|
|
|
import com.sheep.gamegroup.util.MyDbManager;
|
|
|
import com.sheep.jiuyan.samllsheep.BuildConfig;
|
|
|
import com.sheep.jiuyan.samllsheep.R;
|
|
|
@@ -65,7 +66,6 @@ public class FloatService extends Service {
|
|
|
@Override
|
|
|
public void onCreate() {
|
|
|
super.onCreate();
|
|
|
- Log.i(TAG, "MainService Created");
|
|
|
createToucher();
|
|
|
startTimer();
|
|
|
}
|
|
|
@@ -128,7 +128,7 @@ public class FloatService extends Service {
|
|
|
}
|
|
|
|
|
|
MyDbManager.getInstance().removeAppRecord();
|
|
|
- System.out.println("MonitorAppService runTime = "+runTime);
|
|
|
+ LogUtil.println("MonitorAppService runTime = "+runTime);
|
|
|
object.put("task_time", runTime/1000);
|
|
|
object.put("release_task_id", taskEty.getRelease_task_id());
|
|
|
SheepApp.getInstance().getNetComponent().getApiService().commitAutoTask(object)
|
|
|
@@ -137,19 +137,17 @@ public class FloatService extends Service {
|
|
|
.subscribe(new SheepSubscriber<BaseMessage>(getApplicationContext()) {
|
|
|
@Override
|
|
|
public void onNext(BaseMessage baseMessage) {
|
|
|
- if(BuildConfig.DEBUG)
|
|
|
- System.out.println("MonitorAppService baseMessage onNext "+ JSON.toJSONString(baseMessage));
|
|
|
+ LogUtil.println("MonitorAppService baseMessage onNext "+ JSON.toJSONString(baseMessage));
|
|
|
CommonUtil.getInstance().setTAskEnty(null);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public void onError(BaseMessage baseMessage) {
|
|
|
- if(BuildConfig.DEBUG)
|
|
|
- System.out.println("MonitorAppService baseMessage onError "+JSON.toJSONString(baseMessage));
|
|
|
+ LogUtil.println("MonitorAppService baseMessage onError "+JSON.toJSONString(baseMessage));
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
- System.out.println("MonitorAppService count = "+count);
|
|
|
+ LogUtil.println("MonitorAppService count = "+count);
|
|
|
count++;
|
|
|
return;
|
|
|
}
|