问题:

ActivityManager: Service starting has been prevented by iaware or trustsbase sInfo ServiceInfo{c50ea35 xxx.xxx.xxx.ServiceName}

问题描述,该问题再华为部分手机升级到Android 10.1之后,启动服务会遇到该问题。

解决方法:

启动的时候加个延时就可

new Handler().postDelayed(new Runnable() {@Overridepublic void run() {Intent intent = new Intent(getContext() ,ServiceName.class);if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {startForegroundService(intent);} else {startService(intent);}}
},1000);

所遇机型:

华为 荣耀V20  ;华为M 30;华为M6   ........

都是在升级10.1之后遇到的。其他机型正常启动都正常。

Service starting has been prevented by iaware or trustsbase sInfo ServiceInfo 解决方法相关推荐

  1. Android 华为手机10.1 启动service Service starting has been prevented by iaware or trustsbase **

    在Application 里启动一个service 保持与服务器的长连接,但是在华为10.1 系统上启动异常: Service starting has been prevented by iawar ...

  2. 电脑显示服务器未能登陆 无法加载用户配置,win7系统提示User Profile Service服务未能登录,无法加载用户配置文件的解决方法...

    很多小伙伴都遇到过win7系统提示User Profile Service服务未能登录,无法加载用户配置文件的困惑吧,一些朋友看过网上零散的win7系统提示User Profile Service服务 ...

  3. The server encountered an internal error that prevented it from fulfilling this request 的解决方法

    在多次实验发现这个报错,我认为作为小白,最容易报错的可能是 空指针异常(NullPointerException )

  4. See system logs and 'systemctl status xxx.service' for details.错误的解决方法

    启动apache服务出现Job failed. See system logs and 'systemctl status' for details. 2012-02-23 22:00 [root@l ...

  5. 计算机没有用户配置文件,win7提示User Profile Service服务未能登录,无法加载用户配置文件如何解决...

    最近有用户在启动Windows7系统的时候欢迎界面出现"User Profile Service服务未能登录,无法加载用户配置文件"的提示,怎么都没办法进入到桌面,那么如何解决呢? ...

  6. User profile synchronization service starting issues 用户配置文件同步服务启动问题

    User profile synchronization service starting issues 用户配置文件同步服务启动问题 这里,尽管我删除并重建了user profile service ...

  7. vsftpd.service; disabled; vendor preset: disabled解决方法

    [现象] [root@instance-6es4pt95 init.d]# systemctl status vsftpd ● vsftpd.service - Vsftpd ftp daemon L ...

  8. WCF Data Service 的.NET Client 的不支持原生类型服务操作的解决方法

    WCF Data Service  的.NET Client 的不支持返回值为原生类型(string,int)的服务操作调用,例如我们用如下服务操作: [WebGet] public ObjectQu ...

  9. 【转】Service Intent must be explicit的解决方法

    [转]Service Intent must be explicit的解决方法 参考文章: (1)[转]Service Intent must be explicit的解决方法 (2)https:// ...

最新文章

  1. 浏览器ERR_PROXY_CONNECTION_FAILED解决方法
  2. 窗体内元素遍历-通用方法(DevExpress 中BarManager的遍历)
  3. Chrome 正在测试标签页的预览功能
  4. 8 Great Java 8 Features No One's Talking about--转载
  5. Scala特质可以继承Java类及限制特质的使用
  6. html 三级目录索引,墨涩网 - HTTP Web服务器索引目录列表程序Directory Lister——墨涩网...
  7. 剑指offer之31-35题解
  8. Html、Css-----当有文字和图片的时候,需要文字和图片居中,怎么实现?不想文字换行怎么设置...
  9. JavaOne 2012:JavaOne技术主题演讲
  10. Python3 基础学习笔记 C03【操作列表】
  11. 被百度AI官方认证的大学,到底是什么水平
  12. squid的简单介绍
  13. uboot之fastboot烧录镜像
  14. 后端基础概念:各种OCV一网打尽(上篇)
  15. SQL中char、varchar、nvarchar的区别
  16. 查询同一组的最大最小值及明细
  17. spring加载属性(properties)文件
  18. php excel数据导出
  19. linux2.6.34编译安装,busybox linux-2.6.2 编译安装中碰到的若干问题
  20. word转PDF(使用liberOffice插件)

热门文章

  1. ApeCoin计划推出自己的区块链,Messari分析师们怎么看?
  2. html同时播放多个文件夹,怎么把很多文件一起同时放入一个文件夹内
  3. jsp2022326税务税收协同办公系统
  4. 【088】中国大学MOOC-高教社大学课程学习平台
  5. 触控笔有必要买吗?苹果平板触控笔排行榜
  6. nodejs addon
  7. java 中long和Long的区别
  8. 用加密算法给女朋友写封情书
  9. 解决 WKWebView goback执行无效的bug
  10. timed out waiting for to be synced