Writing android with Kotlin: retrofit + rxjava try
Recently, I learned the Kotlin language recommended by Google for Android development, which was used to try to reconstruct the MVP+Retrofit+Rxjava code before. Here is my reconstructed Kotlin code
First add the compile of gradle:
dependencies {
compile 'io.reactivex.rxjava2:rxjava:2.0.7'
compile 'io.reactivex.rxjava2:rx ...
Posted by jl9148 on Wed, 11 Dec 2019 01:11:15 +0100
First use of Retrofit
Rxprofile library is a well written network framework library, which is imported into its own project as a local Module first.
1. Most of its initialization operations are completed in user-defined application s, such as:
public class App extends Application {
@Override
public void onCreate() {
super.onCreate();
...
Posted by SFDonovan on Thu, 05 Dec 2019 21:51:52 +0100
retrofit 2.6.1 Source Parsing
Articles Catalogue
Explanation of examples
Source code parsing
Create Retrofit instances (constructor pattern)
Acquisition of PlatForm
An example of dynamic proxy getting interface
Acquisition of service method
Constructing OkHttpCall Object
Retrofit2 github address
Explanation of examples
Re ...
Posted by moallam on Mon, 12 Aug 2019 12:59:16 +0200
Code compression confusion and Packaging Optimization for Android ProGuard
Preface
This is an actual Demo exercise for sharing only. Please give it to Star if you like.
demo link: https://github.com/AnyLifeZLB/AndroidAppFrameWork
Why start ProGuard (all trials are in AS environment)
Code compression is provided through ProGuard, which detects and removes unused classes, fields, methods, and attributes from encapsulati ...
Posted by blindtoad on Sat, 06 Jul 2019 19:02:04 +0200
Implementation of Token Authentication and Android for API Interface JWT
Last article The implementation of JWT authentication on Laravel framework server has been introduced. This article continues with the Android client implementation. Looking back on the process of JWT authentication, the client first submits the account password for login. After the account password verification is successful, the server will ...
Posted by stevesimo on Thu, 04 Jul 2019 02:52:26 +0200
json parsing used in headline projects
In the project, the json format data returned from the json parsing website is used. My network access uses the retrofit 2.0 framework, which contains the json converter to object converter. Of course, you can customize the converter yourself.
In fact, the converter is based on the most basic json string text to constantly parse and transform ...
Posted by agent_smith_sp on Fri, 28 Jun 2019 00:59:27 +0200
How Android-live Makes a Live Software Using Third Party SDK
SDK Service Selection
At present, there are many services for live cloud broadcasting.
Music as cloud
NetEase cloud letter
Poly vision
Ali cloud
Baidu Cloud
You can choose according to your own needs.
Basic Principles of Live Broadcasting
Push push flow
That is, the live broadcasting terminal, used for collecting video information upload, pro ...
Posted by timandkitty on Thu, 23 May 2019 00:05:07 +0200
App Network Framework Warfare III: Download Progress and Breakpoint Resume
App Network Request Actual Warfare III: Download Progress and Breakpoint Renewal
Boss, salvage.
Original formula, no illustration diao
Needs analysis and problem solving steps
It appears that the rxjava and retrofit combination cannot return synchronously as follows:
Response<BaseResponse<ResEntity1.DataBean& ...
Posted by clartsonly on Sun, 19 May 2019 20:20:20 +0200
Andriod RX+Retrofit Basic Learning and Simple Encapsulation
Recently, new work has been added. Android products use RX+retrofit as the framework of network interaction, which has never been used before, and only make up for it by themselves. Here I share with you the results of my study, which is also convenient for me to review in the future. There are many similar articles, and the encaps ...
Posted by markjia on Sat, 18 May 2019 14:09:08 +0200
Source Code Analysis of Java B2C Springcloud Electronic Commerce Platform-Feign
What is Feign
Feign, influenced by Retrofit, JAXRS-2.0 and WebSocket, is an open source project for Java to http client binding. Feign's main goal is to make the Java Http client simple.
Write a Feign
Now let's simply implement a FeignClient. First, through @FeignClient, the client, where value is the name of calling other services, and FeignCo ...
Posted by pedroz on Fri, 17 May 2019 04:22:11 +0200