Context.startForegroundService() did not then call Service.startForeground()产生Anr
直接上正题1解决办法//开启服务做兼容处理Intent intentOne = new Intent(this, BackService.class);if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { startForegroundService(intentOne);}else { startServic...