- 博客(6)
- 资源 (1)
- 论坛 (1)
- 收藏
- 关注

原创 Context.startForegroundService() did not then call Service.startForeground()产生Anr
直接上正题1解决办法//开启服务做兼容处理Intent intentOne = new Intent(this, BackService.class);if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { startForegroundService(intentOne);}else { startServic...
2019-06-18 19:41:14
11218
2

原创 找不到org.reactivestreams.Publisher的类文件
如果使用RxJava的jar包,出现这样的提示,那是因为还缺少一个jar包还需要reactive-streams.jar包
2018-07-17 14:25:16
5906
6
原创 散状花瓣图,玫瑰图,南丁格尔图
业务图,业务代码public class RoseChart extends View { //图标尺寸 private int chart_size; private static Context context; //传入参数(各个风向百分比) private List<Float> percentageList; private List<St...
2020-12-15 18:34:51
39
1
原创 android 平板适配,今日头条适配(同时适配手机和平板)
新项目,做平板适配,看了网上的很多适配方案,感觉都不合适,最后,干脆用今日头条适配.经几个月的临床经验,果然能用,但是要注意几个问题:(顺便说一下,如果身边有丝袜,短裙,哈哈哈哈,好姑娘.... 记得给我介绍一下,当然,如果是异域(少数民族或国外)风味的,这个最好)0,首先,在Application中引入,这个不解释//初始化今日头条适配AutoSize.initCompatMultiProcess(this);1,引入依赖//今日头条的适配implementation '.
2020-11-23 11:59:10
2262
7
原创 Toast断断续续的弹出,解决方案,Toast显示问题
针对以前的单利toast,先上最早的单利吐司不能用,不能用,不能用public static void show(Context context, String msg) {if (toast == null) { toast = Toast.makeText(context, msg, Toast.LENGTH_SHORT); } else { toast.setText(msg); ...
2020-08-07 14:29:21
94
2
原创 Couldn‘t find meta-data for provider with authority
这个原因很简单,妈的,网上没有用太多相关的文章,自己mark一下,这个错误是检查AndroidManifest.xml,里面的<provider android:name="androidx.core.content.FileProvider" android:authorities="包名.fileprovider" android:exported="fal...
2019-08-21 18:03:38
13400
11
找不到org.reactivestreams.Publisher的类文件
2018-07-17
ant不是内部命令或外部命令
发表于 2018-04-18 最后回复 2018-04-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人 TA的粉丝