草庐IT

ServiceRecord

全部标签

Android 9 (Pie), Context.startForegroundService() 没有调用 Service.startForeground() : ServiceRecord

首先,我看了这些;Context.startForegroundService()didnotthencallService.startForeground()Context.startForegroundService()didnotthencallService.startForegroundAndroid9(Pie)Only:Context.startForegroundService()didnotthencallService.startForeground()-WorksfineonOreoRemoteServiceExceptionContext.startForegro

android - 我的服务总是等待 : ServiceRecord error in Kitkat 足够长的时间

我有一个在kitkat中运行的后台服务,它总是在logcat中抛出Waitedlongenoughfor:ServiceRecord消息。但在以前的android版本中,我的应用程序运行顺利,没有任何问题。有时我的服务会在Kitkat中自动终止。 最佳答案 这是由于ActivityServices的“后台服务序列化运行”修改引起的。Implement#10744011:SerializerunningofbackgroundservicesAddedsomecodetotheactivitymanagertokeeptrackofs