Analysis of Picasso Source Code

Analysis of Picasso Source Code When I first came into contact with Android a few years ago, it was more difficult to load and display pictures. Although it was not difficult, you had to care about the network, caching, traffic, memory leaks, etc. At this time, Picasso appeared with an artistic name, which suddenly made me realize the im ...

Posted by JonathanS on Sat, 15 Jun 2019 12:17:48 -0700

Summary of Network Library

Introduction of Network Library 1.HttpURLConnection API is simple and small, so it is very suitable for Android projects, but there are some bug s in android 2.2 and below version HttpUrlConnection, so it is recommended to use HttpUrlConnection after android 2.3, and HttpClient before that. 2.HttpClient (Apache ) Efficient and stable, but costl ...

Posted by sneskid on Wed, 05 Jun 2019 13:20:19 -0700

HTTPS Principle and OKHTTP Support for HTTPS

HTTPS principle Let's first look at the definition, an introduction from wikipedia: HTTPS (also called HTTP over Transport Layer Security (TLS), HTTP over SSL, and HTTP Secure) is a communications protocol for secure communication over a computer network which is widely used on the Internet. HTTPS consists of communication over Hypertext Tran ...

Posted by comicrage on Fri, 31 May 2019 17:22:45 -0700

OkHttp Knowledge Carding (2) - Asynchronous Request for Source Parsing of OkHttp-Thread Scheduling

OkHttp Knowledge Carding Series OkHttp Knowledge Carding (1) - Introduction to OkHttp Source ParsingOkHttp Knowledge Carding (2) - Asynchronous Request for Source Parsing of OkHttp-Thread Scheduling I. Preface stay OkHttp Knowledge Carding (1) - Introduction to OkHttp Source Parsing In this paper, we will study the internal implementation prin ...

Posted by kristo5747 on Sun, 19 May 2019 16:34:18 -0700

Android Multithreaded Download File Principle Overwhelming Resolution Introduction - --- File Download (3)

1. First let's create the download location - create the file based on the url. /** * <p>Title: FlieStorageManager</p > * <p>Description: TODO</p > * <p>Company: ihaveu</p > * * @author MaWei * @date 2018/2/5 */ public class FlieStorageManager { public static FlieStorageManager sManager = new ...

Posted by kmutz22 on Fri, 17 May 2019 15:09:07 -0700

RX Java 1 is simple to use

Article directory Preface Environmental configuration Observable Simple Subscription and Observation Interthreaded switching Complete life cycle exception handling Observable Management Simple example RXJava in conjunction with Retrofit Define Retrofit interface class Initialize the Retrofit class Simple network requests O ...

Posted by fusioneko on Fri, 17 May 2019 02:17:49 -0700

Retrofit source learning

Preface The source code of Retrofit has been learning for some time, and has recently been doubled, and then summarized. It uses many design patterns, including factory mode, agent mode, adapter mode and so on. Create method mRetorfit.create(Service.clss) The return statement of the create method is as follows: ...

Posted by fluxem on Thu, 16 May 2019 00:25:16 -0700

pre-network Preloading Network Framework

Network optimization is a very important part of all app development. If the network request is pre-loaded before clicking on jump activity, the speed will be improved qualitatively. That is, the network preload frame. Network preload framework, listening network preload framework - Network preload, network preload the framework.- pre-network ...

Posted by lilman on Wed, 15 May 2019 22:58:24 -0700

Android Development Artifact: OkHttp Framework Source Parsing

Preface HTTP is our modern application network for exchanging data and media streams. Effective use of HTTP can save bandwidth and load data faster. Square's open source OkHttp network request is an efficient HTTP client. Previous knowledge is limited to the use of framework API. After touching the actual work, I know my lack of knowledge. So ...

Posted by ladokha on Tue, 14 May 2019 05:32:54 -0700

We build wheels together - RxDownload

A download tool based on RxJava to support multi-threading and breakpoint continuation Project address RxDownload Main functions: Use Retrofit+OKHTTP for network requests Build on RxJava to support chain invocation of various RxJava operators Continuous transmission of breakpoints, according to the response value of the server to ...

Posted by Roble on Fri, 10 May 2019 22:05:29 -0700