Android
二宇先生
android新手,努力。
展开
-
报错sun.security.validator.ValidatorException: PKIX path building failed
在执行webservice的过程中,出现如下异常:javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unabl...转载 2020-03-31 15:23:15 · 1089 阅读 · 0 评论 -
关于android 百度地图离线包的调用问题
最近公司要将android8.0的设备安装到android4.4的设备上,不能联网,所以不知道离线地图拷到哪个路径下.遇到的情况我的解决方法:首先要知道你的设备是支持高分辨率的还是低分辨率的,就是h还是l ,然后我们下载的离线压缩包里面的文件名为:Bei_Jing_Shi_131.dat_svc,直接改成beijing_131.dat,然后放到 ,SD卡根目录下的BaiduMapS...转载 2020-03-25 19:05:16 · 832 阅读 · 0 评论 -
BLE5.0与BLE4.2的区别与新特性
转发自https://www.jianshu.com/p/b5ff08b987fa1.传输速率提高2倍Bluetooth 5把目前的传输速度提高了2倍。蓝牙4.2最大通讯速度为1Mbps,而蓝牙5.0通讯速度最高为2Mbps。更快的传输速度将在提升频谱和能量效率的同时,使数据传输速率加倍,大幅降低功耗,并且可以实现诸如音频等全新的更高吞吐量应用,单包数据由原来蓝牙4.0的20字节扩展到蓝...转载 2020-01-08 19:38:36 · 1837 阅读 · 0 评论 -
RemoteServiceException: Bad notification for startForeground...
原文链接: https://blog.csdn.net/dandelionela/article/details/86092293写了一个前台通知,在Android5.0设备上测试没问题,换到8.0之后报错:android.app.RemoteServiceException: Bad notification for startForeground: java.lang.RuntimeEx...转载 2019-12-19 09:52:45 · 889 阅读 · 0 评论 -
报错:Context.startForegroundService() did not then call Service.startForeground?
前言:最近在处理Android O的应用crash和anr问题,其中遇到比较多的就是“Context.startForegroundService() did not then call Service.startForeground()”,将自己的处理心得总结回顾一下。 demo:https:...转载 2019-12-19 09:44:44 · 1873 阅读 · 0 评论 -
java 使用正则表达式统计一个字符串中子字符串出现次数
待匹配字符串为str,子字符串为child,使用正则表达式代码如下: Pattern p = Pattern.compile(child, Pattern.CASE_INSENSITIVE); Matcher m = p.matcher(str); int count = 0; while (m....转载 2019-04-17 18:30:48 · 4700 阅读 · 0 评论 -
String与byte[]字节数组中文转换乱码问题
原文地址:http://www.cnblogs.com/hy928302776/archive/2013/04/20/3032728.htmhttps://blog.csdn.net/vipclx/article/details/8029410在Java中,String.getBytes(S...转载 2019-04-17 15:50:23 · 8556 阅读 · 0 评论 -
【Android 学习】实现仿360悬浮窗
本篇博客转自郭霖的博客http://blog.csdn.net/guolin_blog/article/details/8689140360手机卫士我相信大家都知道,好多人手机上都会装这一款软件,那么我们对它的一个桌面悬浮窗效果想必都不会陌生。请看下图:          &amp转载 2019-03-06 09:35:31 · 715 阅读 · 0 评论