Memory leakage detection method and apparatus for Android application
Patent Information
- Authority / Receiving Office
- CN · China
- Current Assignee / Owner
- 卓望数码技术(深圳)有限公司
- Publication Date
- 2017-10-10
- Estimated Expiration
- Not applicable · inactive patent
Smart Images

Figure 1 
Figure 2
Abstract
Description
technical field
[0001] The invention relates to the technical field of Android system memory management, in particular to a memory leak detection method and device for Android applications. Background technique
[0002] In the code writing based on the Android (Android) system, according to the working experience of the developer, the code that is prone to memory leaks is generally processed.
[0003] Currently, in Android application development, objects still hold references to the objects after they are used, so that previously allocated memory cannot be reclaimed, resulting in memory leaks. This requires developers to exercise additional control over codes that are prone to memory leaks to prevent memory leaks. For example, the importance of context (context environment) is self-evident. Context has its own life cycle. If it is used improperly, it will always hold a reference to the context, which will cause the existence of the context to exceed its own life cycle, whi...