ANR-分类以及分析流程
本篇开始整理一些关于ANR的知识,包括:分类,分析流程,基础知识,实例,以及原理等。 由于本人技术水平有限,而ANR的问题涉及整个系统的影响,因此很多复杂的ANR,或者系统ANR本人无法解决。 另外,由于本人对于系统层知识了解比较浅显,因此很多ANR问题也只能分类或者很多找到的原因不太准确,还是需要读者自己去深入学习。 ANR分类 Service Timeout:前台服务在20s内未执行完成,后台为200s; BroadcastQueue Timeout:前台广播在10s内未执行完成,后台为60s; ContentProvider Timeout:内容提供者在publish超时10s; InputDispatching Timeout:输入事件分发超时5s,包括按键和触摸事件; 后台的anr,即isSilentANR值为true,那么不显示ANR对话框,直接kill掉ANR所在进程; 如果内部框架有问题比如窗口管理器存在死锁也不会显示ANR对话框,但最后会触发安卓 WatchDog...
Google官方Android开发资料整理之-App architecture(架构)
本章主要整理Goole官方提供的App architecture相关资源 App architecture | Android Developers (google.cn) Guide to app architecture Guide to app architecture | Android Developers (google.cn) UI layer Guide to app architecture | Android Developers (google.cn) UI events | Android Developers (google.cn) State holders and UI State | Android Developers (google.cn) UI State production | Android Developers (google.cn) Domain layer Domain layer | Android Developers (google.cn) Data layer Data layer ...
Kotlin-Coroutines
本章整理Kotlin Coroutines(协程)的源码,API文档,以及Jetbrain官方文档,Google官方的Coroutine for Android文档资源。 源码 kotlinx.coroutines: Library support for Kotlin coroutines–源码 All modules (kotlinlang.org)–协程API Jetbrain 官方 Coroutines guide | Kotlin Documentation (kotlinlang.org) Coroutines basics | Kotlin Documentation (kotlinlang.org) Coroutines and channels − tutorial | Kotlin Documentation (kotlinlang.org) Cancellation and timeouts | Kotlin Documentation (kotlinlang.org) Composing suspending functions |...
Google官方Android开发资料整理之-Jetpack Compose
Jetpack Compose is the modern toolkit for building native Android UI. Here’s where you’ll find the latest information about using Compose. Overview: See all the resources available to Compose developers. Tutorial: Get started with Compose, by using it to build a simple UI. Foundation Thinking in Compose: Learn how Compose’s declarative approach is different from the view-based approach you may have used in the past, and how to build a mental model of working with Compose. Managing state:...
Google官方Android开发资料整理之-总汇
本篇为谷歌官方Android资料总汇篇。 Android Mobile App Developer Tools – Android Developers:Android开发主页 Developer guides | Android Developers:Android开发指引 Documentation | Android Developers:Android开发相关文档主页 Meet Android Studio | Android Developers:Android studio相关的文档集合 Android Jetpack Dev Resources - Android Developers:Jetpack相关文档 Kotlin and Android | Android Developers:Google官方Kotlin开发文档主页 Android Platform | Android Developers:Android各平台开发文档主页 Training Courses | Android...
Google官方Android开发资料整理之-测试
本篇整理谷歌官方关于Android测试的资料 Write automated tests with UI Automator | Android Developers Fundamentals Fundamentals of testing Android apps | Android Developers What to test in Android | Android Developers Use test doubles in Android | Android Developers Local tests Build local unit tests | Android Developers Instrumented tests Build instrumented tests | Android Developers Automate UI tests | Android Developers AndroidX Test Set up project for AndroidX Test | Android...
Google官方Android开发资料整理之-安全
本篇主要整理谷歌官方关于Android的安全资料 App security best practices | Android Developers Security tips | Android Developers Mitigate security risks in your app Mitigate security risks in your app | Android Developers Content resolvers | Android Developers Intent redirection | Android Developers Hardcoded Cryptographic Secrets | Android Developers Log info disclosure | Android Developers Path traversal | Android Developers Pending intents | Android Developers Sticky Broadcasts | Android...
Google官方Android开发资料整理之-性能优化详解
本篇整理谷歌官方关于Android开发性能的资料。 Guide to app performance | Android Developers Inspecting performance Inspecting performance | Android Developers The Android Profiler | Android Developers Profiling and tracing System tracing Overview of system tracing | Android Developers Capture trace The Android Profiler | Android Developers Capture a system trace on a device | Android Developers Capture a system trace on the command line | Android Developers Navigate a Systrace report | Android...
Google官方Android开发资料整理之-性能优化工具使用
对于Android开发,谷歌的开发者网站非常友好,里面有非常全面的开发资料,其实很多博客的资料都是来源于官方,但是相对没有官方全面,因此为了系统的学习官方的资料,本篇开始整理官方的一些Android开发资料。 Google官方资料 Profile your app performance | Android Studio | Android Developers Inspect CPU Activity Inspect CPU activity with CPU Profiler | Android Studio | Android Developers Record traces | Android Studio | Android Developers Export traces | Android Studio | Android Developers Import traces | Android Studio | Android Developers Inspect traces | Android Studio | Android...
