
Android入门
Coding_Beginner
这个作者很懒,什么都没留下…
展开
-
Android入门——Activity的生命周期
一、Activity的生命周期app涉及三个活动:A mainActivity 、B normalActivity、C dialogActivity 。A可启动B、C红色为活动A一个完整生命周期的路径,绿色为活动B的生命周期,蓝色为活动C的生命周期: 上图为 图1 启动A后 图2 A启动B后...原创 2018-12-02 12:35:32 · 259 阅读 · 0 评论 -
Android入门——Android Studio中安卓模拟器访问搭建的web服务器
Eclipse中用Tomcat服务器搭建的web服务器(即web站点)http://localhost:8080/ServletDemo/HelloWorld首先,确保Eclipse中的Java Web项目(ServletDemo)已成功部署到Tomcat服务器(tomcat安装目录下的webapps文件夹里有项目文件夹;若没有,则项目根本没有部署到服务器,直接在PC端浏览器也无法访...原创 2019-01-25 15:01:50 · 2693 阅读 · 0 评论 -
Android入门——OkHttp3之Cookies管理及持久化
持久化管理cookie的几种方法:(一)特简单!直接使用PersistentCookieJar开源库:https://github.com/franmontiel/PersistentCookieJar1. 配置(1)在 project 的 gradle 中添加 JitPack 存储库:maven { url "https://jitpack.io" }allproje...原创 2019-02-14 18:46:37 · 1578 阅读 · 0 评论 -
Android入门——Android Stuio 在函数前面快速生成说明注释和参数注释的方法
在方法前输入/** 然后一回车,自动生成方法和参数的注释。然后你也可以自己加上一些说明原创 2019-02-15 21:25:35 · 614 阅读 · 0 评论 -
The origin server did not find a current representation for the target resource or is not willing to
Eclipse搭建的web项目本来是正常的,在重新开机后出现 错误404 The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.的解决方法解决办法:!首先确保文件配置正确、代码没错、访问的 ur...原创 2019-02-15 21:43:45 · 857 阅读 · 0 评论 -
Android入门——Android 6.0(API 23)及以上动态申请读写权限
一、编写申请权限的工具类PermissionUtil.javapublic class PermisssionUtil { // Storage Permissions private static final int REQUEST_EXTERNAL_STORAGE = 1; private static String[] PERMISSIONS_STORAGE...原创 2019-02-12 21:35:54 · 523 阅读 · 0 评论 -
Parcelable接口的使用——要将实体类封装到消息中,必须实现该接口
参考文章:Parcelable接口的使用原创 2019-03-01 11:33:07 · 379 阅读 · 0 评论 -
Android入门——使用OKhttp获取response时可能遇到的问题
第一次调用完response.body().string()的时候数据流已经关闭了,再次调用就是提示已经closed参考文章:Android——使用OKhttp获取response时遇到的坑原创 2019-03-04 22:24:20 · 1657 阅读 · 0 评论