随笔分类 -  安卓学习笔记

摘要:错误报告java.lang.NoClassDefFoundError:Failed resolution of: Lorg/ietf/jgss/Oid; 问题是由于 Lorg.ietf. jgss.Oid 没有找到与 gss api一起使用的,可以通过使用密码身份验证来避免这一点。 解决方案 :在s 阅读全文
posted @ 2018-09-28 20:30 lancelee98 阅读(695) 评论(0) 推荐(0) 编辑
摘要:permissions is only granted to system apps androidstudio中: File Setting Editor Inspections, Android Lint Correctness 下的 Using system app permission , 阅读全文
posted @ 2018-09-08 21:00 lancelee98 阅读(285) 评论(0) 推荐(0) 编辑
摘要:values v19/style.xml ` <item name="android:windowTranslucentStatus" true</item <item name="android:windowTranslucentNavigation" true</item ` values v2 阅读全文
posted @ 2018-08-20 12:52 lancelee98 阅读(1396) 评论(0) 推荐(0) 编辑
摘要:导入support v4 1.进入 file project structure 2.左边选择app 3.右边选择dependencies 4.左下角可以看到一个加号,点击选择Library dependency就可以看到可以导入的jar包,选择support v4导入即可 简单通知 通知管理工具 阅读全文
posted @ 2018-08-16 13:30 lancelee98 阅读(918) 评论(0) 推荐(0) 编辑
摘要:运行时权限 使用ContextCompat.checkSelfPermission(MainActivity.this,Manifest.permission.CALL_PHONE)!=PackageManager.PERMISSION_GRANTED//判断是否有权限 ActivityCompat 阅读全文
posted @ 2018-08-16 11:28 lancelee98 阅读(360) 评论(0) 推荐(0) 编辑
摘要:HttpURLConnection OkHttp 添加依赖 编辑 app/build.gradle 在dependencies闭包中添加 implementation 'com.squareup.okhttp3:okhttp:3.11.0' GET OkHttpClient client = new 阅读全文
posted @ 2018-08-15 16:50 lancelee98 阅读(369) 评论(0) 推荐(0) 编辑
摘要:动态注册监听网络变化 创建intentFilter 并addAction 代表了监听哪个广播 然后使用registerReceiver()方法 将intentFilter 与 自己创建的监听器 传进去 动态注册的 需要unregisterReciver() 权限需要在Mainfest中声明 publ 阅读全文
posted @ 2018-08-13 16:14 lancelee98 阅读(1539) 评论(0) 推荐(0) 编辑
摘要:TextView android:gravity="center"居中对齐 //文字对齐方式 top bottom left right center android:textSize="24sp" android:textColor=" ffffff" Button textAllCaps="fa 阅读全文
posted @ 2018-08-13 13:16 lancelee98 阅读(437) 评论(0) 推荐(0) 编辑
摘要:XML给元素定义ID 定义id android:id="@+id/button_1" 引用id 解决Failed to load Appcompat Actionbar with unknown error 在Project 中找到\app\src\main\res\values\styles.xm 阅读全文
posted @ 2018-08-08 12:52 lancelee98 阅读(593) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示