Android | InputManagerService and Input Event Collection

Preface Event distribution mechanisms are fundamental and important knowledge in Android, and Activity#dispatchKeyEvent() or Activity#dispatchTouchEvent() is generally considered as the starting point for distribution.So the question arises, who called Activity's method?How do input events occur? The Android system has a complete ...

Posted by neiltaylormade on Sat, 27 Jul 2019 20:16:05 +0200

Source code parsing - AsyncTask sDefaultExecutor parsing

We looked at the execution process of AsyncTask together in the previous blog post, but due to length, we did not parse the default startup mode (sDefault Executor) of AsyncTask. So, in this blog post, we will parse sDefault Executor.   Relevant blog posts Android Foundation - Basic Use of AsyncTa ...

Posted by davidppppppppppp on Sat, 27 Jul 2019 11:33:24 +0200

An analysis of invalid notification clicks for Android version 8.0 and above

Copyright Statement: This is an original article by xing_star. Please indicate where it came from! This article syncs from http://javaexception.com/archives/178 An analysis of invalid notification clicks for Android version 8.0 and above Recently, in restructuring the chat service, there was an opportunity to refresh the previously written n ...

Posted by Karlos94 on Sat, 27 Jul 2019 04:41:42 +0200

An Excerpt of Android Confusion

Write in front Dear friends and relatives, brothers and sisters of CSDN, I want to kill you! Here should be applause, disappeared nearly two months of Han Xiaodai, I came back, again need applause, the dull finally adapted to the new company's various models (in fact, hands from a 0-1 project). The fo ...

Posted by daedlus on Thu, 25 Jul 2019 10:52:58 +0200

Design Patterns | Dynamic and Static Agents

Proxy Pattern, also known as Delegate Pattern, is a structural design pattern and a basic design skill. In daily applications, the use of proxy mode is very high. Many other design modes are essentially targeted optimization of proxy mode in a specific context, which shows the importance of proxy mode. _The first section of this pa ...

Posted by samudasu on Thu, 25 Jul 2019 10:40:50 +0200

Android self-drawing control

During the development process, we need to use some custom View s, which can generally be divided into three categories: (1) Inherit Class View - Basic View after the general inheritance system, add/reset some custom properties, such as two-end aligned TextView; (2) Combination Class View - Combining several basic views of the system to form ...

Posted by brianjw on Wed, 24 Jul 2019 18:47:12 +0200

Fragment Injection for [Top] Android Framework Attacks

Links to the original text: http://www.cnblogs.com/riasky/p/3471323.html In order to adapt to the larger and larger device screen, Android introduced the concept of Fragment after 3.X, which can display multiple activities on one screen ...

Posted by mikelmao on Wed, 24 Jul 2019 10:57:03 +0200

Template Patterns and BaseActivity

I. Template pattern In daily object-oriented development, there is sometimes a requirement that we know the key steps in the implementation of an algorithm or business logic, and determine the execution sequence of these steps; however, the specific implementation of individual/certain steps is unknown ...

Posted by bruceleejr on Wed, 24 Jul 2019 03:55:13 +0200

uniapp + bootstrapvue Mobile/PC Set Configuration Bootstrapvue

1. Preparing documents Go to DCloud website by yourself: http://dcloud.io/ Download the official IDE Hbuilder and create an empty uniapp project. uniapp framework comes with optimized vue, we only need to prepare the following three files: Bootstrap.min.css//bootstrap 4 or more. https://unpkg.com/bootstrap@4.3.1/dist/css/bootstrap.min.css boots ...

Posted by tams on Tue, 23 Jul 2019 19:19:07 +0200

android Custom EditText, Button and Seekbar Simple Usage (Shape Drawable)

Controls provided by the system sometimes do not meet our needs, so we use custom controls. Here we introduce Button highlighting, Edittext highlighting, custom Seekbar,Edittext style, and ShapeDrawable! 1.Button click highlight When we click the button button, the color of the button button should ch ...

Posted by Rohlan on Tue, 23 Jul 2019 09:27:32 +0200