Notallowedtostart serviceIntentXXX:app is in background uidUidRecord 这个报错是8.0做的限制,不允许其创建的后台服务使用startService()函数,该函数会出现IllegalStateException错误;查看官方如下 Android8.0行为变更.png 问题分析 问题复现,首先是app处于后台发起的starService,如果app处于前台期间starService不会报错。于...
app is in background uid UidRecord{607ef50 u0a127 RCVR idle change:idle|uncached procs:1 seq(0,0,0)} 复制代码 1. 2. 3. 4. 重现情景 由于我们的桌面小控件在onUpdate()方法里用Context.startService()启动了Service.当app的进程没有启动时,把桌面部件拉到Launcher桌面上就会报这个错误. Android官...
Caused by: java.lang.IllegalStateException: Not allowed to start service ... app is in background uid UidRecord ... 初步理解为由于app处于后台时startServic不被允许 原因分析 从android O版本开始,google为了控制资源使用增加了两项后台限制: 后台服务 广播 其中对于后台服务的限制,指的是如果应用处于后台,...
3.java.lang.IllegalStateException:Not allowed to start service Intent : app is in background uid UidRecord Android 8.0 不再允许后台service直接通过startService方式去启动,我们需要context.startService()替换为context.startForegroundService(); Intent i =newIntent(context, MediaPlaybackService.class); contex...
2.Caused by: android.app.BackgroundServiceStartNotAllowedException: Not allowed to start service Intent { cmp=com.zjtzsw.sbkDevice/.readCard.SbkReadCardService }: app is in background uid UidRecord{9353cdf u0a88 TPSL idle change:idle|cached procs:0 seq(0,0,0)} ...
Caused by: java.lang.IllegalStateException: Not allowed to start service Intent { cmp=cn.edu.zut.broadservice/.MyService }: app is in background uid UidRecord{b67c471 u0a86 RCVR idle change:uncached procs:1 seq(0,0,0)} at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1577...
Caused by: java.lang.IllegalStateException: Not allowed to start service Intent { cmp=com.wong.testphone/.socket.MinaService }: app is in background uid UidRecord{9cd1107 u0a341 TPSL idle change:idle|cached procs:1 seq(0,0,0)} ...
java.lang.IllegalStateException:Not allowed to start service Intent { cmp=com.cdwh.chatapp/cn.woblog.android.downloader.DownloadService }: app is in background uid UidRecord{f50bf80 u0a443 CEM idle change:idle|cached procs:1 seq(0,0,0)} (1)如果针对 Android 8.0 的应用尝试在不允许其创建...
Fatal Exception: android.app.BackgroundServiceStartNotAllowedException: Not allowed to start service Intent { cmp=com.app/com.guichaguri.trackplayer.service.MusicService }: app is in background uid UidRecord{cbd4b5 u0a582 CAC bg:+1m7s183ms idle change:cached procs:0 seq(0,0,0)} ...
Caused by java.lang.IllegalStateException: Not allowed to start service Intent { cmp=another.music.player/com.simplecity.amp_library.playback.MusicService }: app is in background uid UidRecord{6a4a9c6 u0a143 TPSL bg:+3m25s199ms idle change:cached procs:1 seq(1283,1283,1283)} at andro...