Google Source Code--New Techniques for Log ging

Introducer Recently, I started to read the Google source code to see which codes Daniel wrote are well written, which can be used for reference under their own projects. I found that Google engineers are typing logs in a unified way. Today, let's share how their Log code is written. 1. Upper Source Code First package com.android.mus ...

Posted by jrolands on Wed, 22 May 2019 10:46:37 -0700

retrofit-helper concise encapsulation retrofit, elegant cancel request

retrofit-helper Retrofit is the Http request library that many android developers are using!He is responsible for the encapsulation of the network request interface. The underlying implementation is OkHttp. One of its features is that it contains extra annotations to simplify your code volume. CallAdapter.Factory and Converter.Fact ...

Posted by greeneel on Sat, 18 May 2019 19:25:36 -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

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

Retrofit Post request parameter is Json

​ Description of Retrofit Request Post Request Parameters 1. Description: Retrofit network framework uses annotations to support multiple requests, and the request parameters are also implemented by annotations. This paper mainly describes the parameter settings of Post requests, involving annotations @Field,@FieldMap,@FormU ...

Posted by spfoonnewb on Sat, 27 Apr 2019 10:00:35 -0700

Android Component Development Case (Fusion of 10 Project Modules)

stay Last article In this article, I will introduce some cases about Android component development in detail, in which 10 project modules are merged................................................................ Catalogue introduction 1. Practical development cases 1.1 Open Source Projects for Component Practice 1.1 How to crea ...

Posted by canabatz on Thu, 25 Apr 2019 09:18:35 -0700

Simple practice of rxjava+retrofit+okhttp+mvp

Haven't written a blog for a long time, Khan, usually like to read the blog, but do not like to write a blog, this is not possible, ashamed! This year, I entered a new company, the boss said, first familiar with the code, and after the new UI comes out, refactoring. So these days, I've been familiar with the code and started building the basi ...

Posted by kelesis on Sun, 14 Apr 2019 10:33:32 -0700

The Fourth Bounce of Android Network Request Framework: Introduction to Retrofit 2.0

Summary: The fourth bullet of the network request framework is not actually the encapsulation of Retrofit 2.0, but simply the introduction and use. As for encapsulation, after introducing RxJava, retrofit 2.0 and RxJava will be used together for encapsulation. A brief introduction to Retrofit. Retrofit is Square's open source network reque ...

Posted by Rose.S on Fri, 12 Apr 2019 22:51:32 -0700

A Brief History of Android Network Request Development and RxJava+Retrofit+OkHttp Practice

Summary of Android Development Network Use Summary Android, as a smartphone platform with the same pace as IOS, has made great progress in nearly ten years, and the two platforms can PK out Nokia and the Symbian system that it used at that time, because of their rich functions based on the network. After several years of Android developmen ...

Posted by gerrydewar on Sat, 06 Apr 2019 09:09:32 -0700