摘要: 出现 you call resumePush method to resume the service 这种情况 直接在极光推送的一切操作之前调用以下代码即可 JPushInterface.resumePush(this); 阅读全文
posted @ 2020-08-03 14:50 码弄 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 第一种方法 从https://github.com/zxing/zxing 下载源码 1.与Android有关的代码是在android、androidcore和core模块中 2.File–>New–>ImportModule 将android模块导入项目。 3.File–>New–>NewModu 阅读全文
posted @ 2020-06-17 15:22 码弄 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 本文参考链接:https://blog.csdn.net/perryiii/article/details/77281250 一、创建类ActivityCollect,在这个类中编写addActivity,removeActivity和finishAll等方法。 public class Activ 阅读全文
posted @ 2020-06-17 10:29 码弄 阅读(204) 评论(0) 推荐(0) 编辑
摘要: #下面是序列化的混淆规则# Explicitly preserve all serialization members. The Serializable interface# is only a marker interface, so it wouldn't save them.-keepcla 阅读全文
posted @ 2020-06-16 21:59 码弄 阅读(2044) 评论(0) 推荐(0) 编辑
摘要: ####################### 导航功能 start############################## 1、先去百度开发者中心获取key 参考文档 代码方面比较简单参考文档写就行。主要是sdk集成过程按照你的需求将对应的aar还有jar都塞进去不然初始化会直接崩溃(不知道是 阅读全文
posted @ 2020-06-16 15:34 码弄 阅读(1342) 评论(0) 推荐(0) 编辑
摘要: github网址:https://github.com/square/retrofitimplementation 'com.squareup.retrofit2:retrofit:2.9.0'implementation 'com.squareup.okhttp3:okhttp:3.14.9'im 阅读全文
posted @ 2020-06-08 17:37 码弄 阅读(404) 评论(0) 推荐(0) 编辑
摘要: github网址:https://github.com/JakeWharton/butterknife 中有详细配置 app的build.gradle android { ... // Butterknife requires Java 8. compileOptions { sourceCompa 阅读全文
posted @ 2020-06-08 17:13 码弄 阅读(2762) 评论(0) 推荐(0) 编辑
摘要: // 听说这是最标准的写法 MyHandler myHandler = new MyHandler(this); static class MyHandler extends Handler{ WeakReference weakReference; public MyHandler(MainAct 阅读全文
posted @ 2020-05-29 11:21 码弄 阅读(387) 评论(0) 推荐(0) 编辑
摘要: View view = LayoutInflater.from(context).inflate(R.layout.coustom_view, null);//findviewview.findViewById··· AlertDialogalertDialog = new AlertDialog. 阅读全文
posted @ 2020-05-29 09:34 码弄 阅读(212) 评论(0) 推荐(0) 编辑
摘要: defaultConfig{ ...} splits { abi { enable true reset() include 'x86', 'armeabi-v7a','x86_64' universalApk true }} 阅读全文
posted @ 2020-05-16 15:05 码弄 阅读(975) 评论(0) 推荐(0) 编辑