Practice of Perfect Combination of RxJava and Retrofit
Preface
RxJava and Retrofit have also been popular for some time, but recently I have been learning about React Native and Node related postures, and I have not had time to study these new things. Recently, I have a project to write, and I intend to use it first. Android Write a Demo, and find that the Android world has changed dramati ...
Posted by balsdorf on Mon, 01 Apr 2019 19:36:30 -0700
Summary of Android Common Network Framework
Native Network Request HttpUrlConnection
Its API is simple and small, so it is very suitable for Android projects. Compression and caching mechanism can effectively reduce network access traffic, and also play a major role in improving speed and saving power.
usage
First, we need to get an instance of HttpURLConnection. Generally, we ...
Posted by mastercool on Mon, 01 Apr 2019 07:54:29 -0700
Retrofit2 of Network Framework
Retrofit2 of Network Framework
Summary
Restrofit framework is a network framework produced by Square Company. With annotations and dynamic proxy, it greatly simplifies the tedious steps of network requests and is very suitable for handling Restful network requests.
Main features:
Good performance, fast processing, simple use. One of the ...
Posted by vargefaret on Thu, 28 Mar 2019 09:36:29 -0700
Okio usage analysis
Recently, in researching the concrete implementation of retrofit, retrofit uses okhttp,okhttp uses Okio,so I want to start with the bottom Okio. And I haven't taken a serious look at the IO block of java, so I take this opportunity to learn about io.
This article is about Okio. Next, I should write about okhttp and retrofit. There are a lot o ...
Posted by werty37 on Sat, 23 Mar 2019 03:15:55 -0700
Retrofit2+Okhttp3+Rxjava2 Request Web Service through SOAP Protocol
Retrofit2+Okhttp3+Rxjava2 Request Web Service through SOAP Protocol
Shortly after joining the new company, I spent nine nights and two tigers reading the company's source code, describing it in two words as "bedroom". What's this writing about? After consulting with the leaders, I intend to reconstruct the source code in my spare ti ...
Posted by phpHappy on Mon, 11 Feb 2019 22:12:21 -0800
Retrofit2 + RxJava + Okhttp + RecyclerView Displays Data with MVP Architecture
Write code ideas flow:
// 1. Privileges and Dependencies
// 2. Layout file
// 3. Generate entity bean classes
// 4. Encapsulation tool class Retrofit + RxJava + OkHttp
// 5. Building MVP Architecture
// 6. Create an adapter
// 7. Loading Layout Manager and Binding Adapter in Activity or Fragment
Design sketch:
a. Adding ...
Posted by jasonla on Thu, 07 Feb 2019 17:57:17 -0800
The Era of Android Responsive Programming-RxJava
Personal blog CoorChice,https://chenbingx.github.io/ The latest article will be published CoorChice's blog Welcome to explore!
Meanwhile, by searching for the Wechat Public Number CoorChice or scanning the two-dimensional code at the end of the article, you can pay attention to my Wechat Public Number. At the same time, articles ...
Posted by pbsperry on Fri, 25 Jan 2019 15:18:14 -0800
[Android Architecture] Retrofit 2 + RXjava Encapsulation Based on MVP Model (I)
Recently, there is a new project to do. When building the framework, I combed the next MVP mode by the way. Here is a record. Welcome to make corrections.
Project address GitHub
First, dependence
compile 'com.google.code.gson:gson:2.8.0'
compile 'com.squareup.okhttp3:okhttp:3.4.1'
compile 'com.yanzhenjie:permission:1.0. ...
Posted by Doom87 on Wed, 23 Jan 2019 21:18:14 -0800
Android XStream parses xml data into bean s to support CDATA
Reference resources
1,Android parses complex xml into javabean using XStream
2,XStream supports CDATA Tags
3,Retrofit Accesses Web Service with Soap Protocol
Example
Keep the previous retrofit article after accessing web service, and finally until the access is successful, until the CDATA data needs to be parsed, continue the fol ...
Posted by dniezby on Tue, 22 Jan 2019 21:57:13 -0800
Retrofit 2.0, easy to understand learning posture, Retrofit 2.0 + OkHttp3 + Gson + RxJava
Retrofit 2.0, easy to understand learning posture, Retrofit 2.0 + OkHttp3 + Gson + RxJava
Retrofit, because of its simple and excellent performance, is also favored by many people, but he is still a little different from the previous communication framework, but rest assured, because he himself is very simple, all I believe yo ...
Posted by TheSaint97 on Sun, 06 Jan 2019 23:36:10 -0800