
安卓bug
Keepcloud
这个作者很懒,什么都没留下…
展开
-
安卓 5.0 之后启动服务,必须是显式的,startService()。安卓不能启动服务
1.当按照正规启动不了服务的时候,可以试试以下方法: Intent intent = new Intent("com.gnss.GNSSService"); intent.setAction(GPSBOARDCONTROL);//Service能够匹配的Action intent.setPackage("com.gnss.ssserver");//应用的包名 context.start...原创 2018-03-19 11:51:18 · 3272 阅读 · 0 评论 -
Notification通知不能显示,setContentInfo()和serNumber()过时。
原因:setContentInfo()和serNumber()过时,有的安卓版本不支持他的使用。 解决方法:在setContentText(text + " 你想要在setContentInfo()和serNumber()方法里设的值") ;原创 2018-04-10 17:27:51 · 1151 阅读 · 0 评论