Leak Canary for Android performance optimization
Introduction and use of LeakCanary for Android memory leak detection
Click on the official website here , this article is a rough translation of the official website and my own understanding
1, Use 🌚
To use LeakCanary, you need to add build. XML to the app module In the gradle file, add:
dependencies {
debugImplementation 'com.squareup. ...
Posted by robotta1530 on Sun, 02 Jan 2022 11:55:36 +0100
Exploration on the second opening strategy of Android Webview web page
What are the pain points?Web pages load slowly, white screen, use Caton.Why is there such a problem?1. The web page loading process will start only when the loadUrl() method is called. 2 JS bloated problem 3 Too many pictures loaded 4 WebView itselfHow does webiew load web pages?webview initialization - > DOM download → DOM parsing &rar ...
Posted by Darkness31 on Fri, 31 Dec 2021 22:36:06 +0100
Composite multiplatform supporting PC, Web and Android enters Alpha version
Original link: https://blog.jetbrains.com/kotlin/2021/08/compose-multiplatform-goes-alpha/
The release of Compose Multiplatform marks a new step forward in developing unified UI support using Kotlin!
Based on Google released Jetpack Compose Android 1.0 stable Premise:
Compose for Desktop and Compose for Web have been upgraded to Alpha ver ...
Posted by mosherben on Fri, 31 Dec 2021 19:37:20 +0100
Understand the four startup modes of Android
1: Foreword
The four modes are standard, singletop, singletask and singleinstance. You should clarify a concept. First, what does single want. Each application app has a package name, and then each application will have a task. This task corresponds to the package name. If you want to create a new task, the name must be different.
An applicat ...
Posted by cdwhalley.com on Fri, 31 Dec 2021 17:51:59 +0100
[Android sleep] Android sleep mechanism
1, Sleep overviewSleep, in short, means that the device turns off some components and peripherals when it doesn't need to work (power down or put it into low-power mode).Why sleep? In a word: save electricity.Dormancy is divided into active dormancy and passive dormancy. Active hibernation: for example, if my computer is not used, let the syste ...
Posted by NoorAdiga on Fri, 31 Dec 2021 11:23:43 +0100
Application implementation of Android MVVM architecture
Although the MVVM architecture was also used in previous projects, I was not familiar with the overall MVVM architecture because I did not build the overall framework myself, so I built and implemented the MVVM architecture myself this time.The components used by MVVM architecture include ViewModel, LiveData, ViewBinding/DataBinding, etc. these ...
Posted by stubarny on Fri, 31 Dec 2021 03:15:29 +0100
HTML5 Audio & Video - Compatibility summary
The summary and records in the work are written for the first time. If there are problems, please point out that the records will be updated continuously1, audio**1. Listening and playing completed **Listening to the ended event is inaccurate. You can listen to the timeupdate event to judge that the playback is completed when the current playb ...
Posted by roxiroxi on Thu, 30 Dec 2021 12:23:18 +0100
HTML5 Audio & Video - Compatibility summary
The summary and records in the work are written for the first time. If there are problems, please point out that the records will be updated continuously
1, audio
**1. Listening and playing completed **
Listening to the ended event is inaccurate. You can listen to the timeupdate event to judge that the playback is completed when the curren ...
Posted by HNX on Thu, 30 Dec 2021 08:28:09 +0100
Kotlin in Android cultivation manual - [class and object], [Get and Set], [inheritance], [interface], [abstract class / nested class / inner class], [data class] and [generic]
My flag is still standing here. Do you see, my spear is still sharp, but I can't wave it for you anymore, so I build a high wall, wait, wait, the moment I unload it for you.
Sharing of previous articles
Click jump = > stay up late and fight Android again from bronze to King - development efficiency plug-in Click jump = > unity part ...
Posted by futurshox on Thu, 30 Dec 2021 05:07:46 +0100
Android performance analysis and optimization learning App memory optimization
1. Memory problem
Memory jitter: jagged, GC causing CatonMemory leak: available memory is reduced, frequent GCMemory overflow: OOM, program exception
2. Tool selection
Memory Profiler Real time charts show application memory usage, identify memory leaks, jitters, etc., and provide the ability to capture heap dumps, force GC, and track memory ...
Posted by jamescalvin on Wed, 29 Dec 2021 00:06:54 +0100