Fork me on GitHub
摘要: Activity和Window Activity启动流程 启动模式 LaunchMode 说明 standard 系统在启动它的任务中创建 activity 的新实例 singleTop 如果activity的实例已存在于当前任务的顶部,则系统通过调用其onNewIntent(),否则会创建新实例 阅读全文
posted @ 2021-06-01 15:42 KevinAt2022 阅读(72) 评论(0) 推荐(0)
摘要: ANR分类及超时时间 UI:5s BroadcastReceiver:10s Service:20s ANR原因 引起ANR的原因主要是在主线程做耗时操作导致时间超出系统规定时间限制,就会报出ANR。系统设置ANR的主要原因是给用户更好的体验,防止App卡在某一点没有反应。 UI线程出现ANR 这个 阅读全文
posted @ 2021-06-01 15:29 KevinAt2022 阅读(62) 评论(0) 推荐(0)
摘要: 简单使用 git init 初始化 git add fileName git commit -m "XXXX" git rm README.md 从版本库中删除该文件 git status 查看仓库当前状态 git diff 查看difference log信息 git log git log -- 阅读全文
posted @ 2021-06-01 13:32 KevinAt2022 阅读(45) 评论(0) 推荐(0)
摘要: 浪漫的话 英语版 You say that you love the rain, but you open your umbrella when it rains. You say that you love the sun, but you find a shadow spot when the 阅读全文
posted @ 2021-06-01 11:03 KevinAt2022 阅读(96) 评论(0) 推荐(0)