Android Component Handler Looper Message Understanding

Android Component_Handler Looper Message Understanding 1. Overview of Handler mechanism The Handler mechanism is a message processing mechanism in Android. Major components or key concepts: 1. Message, the data unit for inter-thread communication. 2. Message Queue, Message Queue, which stores messages published by Handler and executes a ...

Added by MachineHead933 on Sat, 06 Jul 2019 21:08:19 +0300

Implementation of Android http request by Rxjava2+Retrofit2

[Exchange only, reprinting is strictly prohibited] Github Demo address click here: Preface This article won't talk about Retrofit2 (my last article) On Retrofit2 It's not about Rxjava2 alone. The theme is: Rxjava2+Retrofit2 implements Android http requests. Http Api Return Results Processing At present, the structure of the api returned from ...

Added by muitine on Sat, 06 Jul 2019 20:53:58 +0300

Some cluttered knowledge points (3)

Some cluttered knowledge points in Android (3) 1. Define style to extract xml attributes of View Sometimes every Child in a layout has the same style, so it's too redundant to rewrite many identical attributes each time. So, extract these attributes and define them into style, as follows <!-- This is the style of the sideslip menu. ...

Added by Mobile on Fri, 05 Jul 2019 20:36:49 +0300

Write to beginners 29_android_Android privilege mechanism

Android 29_Android privilege mechanism Many people know that when accessing some system resources, or when some system settings, such as network settings, we need to apply for permissions, but they don't know why Android wants to set such things, and why they put forward run-time permissions. Android privilege mechanism Some operations a ...

Added by thecookie on Fri, 05 Jul 2019 01:41:24 +0300

Android Framework Learning (3) Syetem Server Process Start Resolution

From the previous blog, we know that the Zygote process started the Syetem Server process. In this blog, we will learn about the Syetem Server process together. Role of System Server The android framework process startup process of the whole system is as follows: init process --> Zygote process --> System Server process --> vario ...

Added by jynmeyer on Thu, 04 Jul 2019 23:43:43 +0300

Basic use of ConstraintLayout layout

Android Basic Layout Constraint Layout Google I/O 2016 released Constraint Layout, which is said to be very powerful. Let's explore it. gradle configuration compile 'com.android.support.constraint:constraint-layout:1.0.0-beta2' Reading Prerequisites: Familiarity with the Four Basic Layouts 1. Position control 8 boundary contr ...

Added by capetonian on Thu, 04 Jul 2019 23:14:08 +0300

Process Analysis of NFC Initialization in [Android 7.0]

1. Sequence diagram of NFC initialization: 2. Code analysis: Initialization is divided into two parts. The first part is the initialization of the server which is used by the framework, and the service is added to the Service Manager. The second part is the initialization of the NFC adapter Nfc adapter, which contains the services correspon ...

Added by nielskg on Thu, 04 Jul 2019 22:20:31 +0300

Play a cool transition animation

The routine of this article is as follows. Let's pretend to take you flying. concept How to use it Set the same name Start Activity Fragment to Fragment Setting up multiple groups of elements Custom Overanimation Source Code Interpretation How to Compatible with Low Version Let's see the effect first. Transition animation with system Cus ...

Added by ou812 on Thu, 04 Jul 2019 01:17:23 +0300

Come play the drop-down refresh animation

Preface You should be familiar with drop-down refresh and drop-down loading.From PulltoRefreshView in the ListView era to SwipeRefreshLayout in the RecycleView era, to encapsulated libraries on Github that accommodate a variety of Views and support both drop-down refresh and pull-up loading; you're already familiar with this.However, it is p ...

Added by Chris16962 on Wed, 03 Jul 2019 19:32:01 +0300

Using Oauth 2.0 to Realize Authorized Logon of Weibo

References for this article: http://blog.csdn.net/highboys/article/details/52139268 http://blog.csdn.net/yypsober/article/details/51720355?locationNum=3&fps=1 Now the realization of third-party authorized login is achieved through Oauth 2.0, but about the understanding and use of Oauth 2.0, I am still learning, can see in detail. Here . ...

Added by phppssh on Tue, 02 Jul 2019 23:54:05 +0300