Android RxLife A Lightweight RxJava Lifecycle Management Library

stay Android RxLife A Lightweight RxJava Lifecycle Management Library (1) In this article, we explain the use of lift,compose, and how RxJava causes memory leaks and how RxLife Solves RxJava memory leaks.No more explanations here, if you haven't seen it, please read back This article mainly explains the use of as operator in RxLife 1.0.4 and it ...

Posted by buck2bcr on Sun, 05 May 2019 13:56:38 -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

Androidc Learning Notes No. 6

How to transmit data over the network in android: HttpURLConnection OKHttp JsonObject Gson Records of 2017/3/11 Using network technology: using data on the network to let our APP interact with the back-end serverUsage of WebView: Embedding a browser in APP to display our web pages (you know the best way to develop a responsive page after le ...

Posted by LanceT on Tue, 16 Apr 2019 22:18:33 -0700

Android Confusion Summary (I)

Preface For a while, my heart grew grassy again. I couldn't keep quiet. I was confused again. In this season of job-hopping, I still feel that I should calm down to learn more. Or write a blog, summarize and sort out the weeds in your heart. Last month, I talked with my friends about this problem: "It's very difficult to collect abnorma ...

Posted by peter.t on Fri, 12 Apr 2019 03:21: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

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

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

android Debugging stetho's Things

In the process of debugging Android program, I can't stand every time I look at the log to check the response of the network and export DB (even sometimes I can't export db). Here is a facebook artifact stetho, but this is a limitation. When I use it, I must connect with the debugged mobile phone through usb, and also use chrome ...

Posted by Quest on Sun, 27 Jan 2019 11:30:16 -0800