Simple Implementation of Responsibility Chain Model in Android

Simple Implementation of Responsibility Chain in Android (Scenario: View to Bitmap) Chain of responsibility Use scenarios Abstract acquisition class Get the implementation class Chain of Responsibility Implementation Class ViewCapture's Real Transform Request Class summary Chain of responsibilit ...

Added by YodaOfCamarilla on Fri, 19 Jul 2019 16:14:29 +0300

Glide combines Okhttp cookie management to realize the function of picture verification code and short message verification code for registration requirements

brief introduction There is a need to use cookie to identify the current mobile phone and obtain the verification code of short message on the function of registration. The process is like this (a bit pitted, csdn doesn't seem to be able to draw the following figure with code): At this point, the problem arises. We need to get the Cookie ...

Added by dunhamcd on Thu, 11 Jul 2019 00:34:28 +0300

RxJava 1.x from introduction to abandonment to RxJava 2.x (2)

Preface RxJava 1.x from entry to abandonment to RxJava 2.x (1) This article explains the simplest introduction, and in this section we will learn about RxJava thread scheduling together. text In the beginning of the last article, RxJava was used to handle asynchronous tasks. But by default, subscribe() is invoked in which thread we produce ...

Added by RickyF on Sat, 06 Jul 2019 23:36:13 +0300

Common design patterns in android

Singleton mode Ensure that a class has only one instance and that it instantiates itself and provides this instance to the entire system. public class Singleton { private static volatile Singleton instance = null; private Singleton(){ } public static Singleton getInstance() { if (instance == null) { syn ...

Added by dirkadirka on Sat, 29 Jun 2019 19:49:31 +0300

Picasso Basic Use and Source Complete Resolution of Android Picture Loading Framework

Write before Originally intended to update a blog every week, while recording the state of life for a week, but a little busy work will not take into account the blog. Miserable Or to mention the recent situation, in the last two weeks has been receiving the company's application billing point, Wo store, silver shells, Wechat, etc., and then is ...

Added by icyfire624 on Wed, 26 Jun 2019 21:45:32 +0300

RxEasyHttp: A Simple and Easy Network Request Framework Based on RxJava+Retrofit2

Source address: https://github.com/zhou-you/RxEasyHttp RxEasyHttp This library is a simple and easy-to-use network request framework based on Retrofit2+RxJava. It combines the characteristics of android platform with network encapsulation library. It uses api chain to call one point to the end, integrates cookie management, multiple cachi ...

Added by Archangel915 on Sun, 23 Jun 2019 22:13:35 +0300

RxJava 2.0 tutorial from scratch (4) Application in Android

From: http://blog.csdn.net/qq_35064774/article/details/53065400 1. Preface In article 123, I introduced the basic usage of RxJava 2.0. This article will be introduced in Android The basic usage of the phrase ___________.   Attached are links to this series of tutorials.  Rx Java 2.0 tutorial from scratch (1) Foundation RxJav ...

Added by leetcrew on Sun, 23 Jun 2019 00:17:57 +0300

okhttp3.0 Ignores https certificates

Recent corporate projects require that the network protocol support https, which has not been touched much before, so this time I would like to summarize the relevant content of HTTPS in android development. 1. https Certificate For the concepts of https and certificates, you can search for Baidu yourself. There are two types of certificat ...

Added by vB3Dev.Com on Sat, 22 Jun 2019 20:44:31 +0300

Ensuring the success rate of network requests (inter-thread communication) through HandlerThread

Encountered a bug, because the server in China, foreign users may use because of network reasons even if the request was sent, but the server still did not receive the uploaded data, need to ensure that the client successfully sent the request.So my idea is to collect failed requests and add them to the request failure queue. After a period of ...

Added by sageman on Mon, 10 Jun 2019 02:02:52 +0300

Consideration of Multi-State View Framework

In the project, we can encounter different situations, such as no-load view, load view, error view and so on. In these cases, there is also the problem of setting the position of multi-state view. All in all, it's a rather troublesome problem. In this question, let's look at what a multi-state view framework needs or how to build a multi-st ...

Added by flash-genie on Wed, 05 Jun 2019 22:15:25 +0300