Record of Retrofit+MVP framework encapsulation

The most popular combination of network requests, retrofit2+okhttp+rxjava+mvp This is the sealed record First, it is divided into modules, such as login First, the use of encapsulation package com.fragmentapp.login.presenter; import android.util.Log; import com.fragmentapp.base.BasePresenter; import com.fragmentapp.http.BaseObserver; impor ...

Posted by jredwilli on Sat, 02 May 2020 08:14:47 +0200

How to modify the value of android:scheme in Android manifest.xml externally

The company has a small need to dynamically configure the value of android:scheme in Android manifest.xml. This translates into the problem of modifying xml node values through an external java project. Among them, Android manifest.xml needs to stipulate a rule: <activity android:name=".MainActivity"> ...

Posted by ridster on Sat, 02 May 2020 07:18:10 +0200

AS Cmake OpenCV Foundation

JniOpencv environment configuration I. preparation of development package 2. Preparation Library Three configuration CPU platform architecture types A small Demo to enhance image brightness JniOpencv environment configuration 1, Prepare development package Copy opencv Android SDK - > SDK - > nati ...

Posted by robin on Sat, 02 May 2020 06:45:50 +0200

Android version download update

Almost every function should havePreparation: request version update to get the link to download apk, For example:“ http://yibanyue.oss-cn-hangzhou.xxx.com/apk/yiyue.apk"Process: request version update link to get the link, pop-up box to ask if it is updated, create apk folder locally, Download apk with DownloadManager, and put the path i ...

Posted by padiwak on Fri, 01 May 2020 23:24:42 +0200

A detailed explanation of the use of selector in Android

From: http://blog.csdn.net/wenwen091100304/article/details/49667293, good summary Introduction The Chinese meaning selector is often used as the background of components in Android. The advantage of doing this is that it does not need to use code control to realize the transformation of different background colors or pictures of compo ...

Posted by jmanfffreak on Fri, 01 May 2020 17:36:32 +0200

apk decompilation and AS basic confusion rules

1, Decompilation Decompress apk with compressed package management software (such as WinRAR, WinZIP, etc.) to get the classes.dex file, and put the file in the dex2jar folder. Use the dex2 jar tool software to get the corresponding jar files. (1) Open the command line interface. (2) Navigate to the directory where d ...

Posted by robtbs on Fri, 01 May 2020 08:04:28 +0200

An LRU implementation for recording the latest search history

For many functions with search requirements, it is generally necessary to display the latest n historical search records, mainly including the following function points: The most recent search items are placed first, and the earliest search records are placed last. Only record the latest n data. If there are more than n search records, delet ...

Posted by gazza52 on Fri, 01 May 2020 02:12:24 +0200

The basic syntax and types of Kotlin

Basic types Basic types used in Kotlin: numbers, characters, Booleans, arrays, and strings. number Type Bit Double 64 loat 32 Long 64 Int 32 Short 16 Byte 8 Representation In Kotlin, the values can be expressed literally as follows: Decimal: 123 Long type is marked with capital L: ...

Posted by NotVeryTechie on Fri, 01 May 2020 00:10:34 +0200

RxJava operators - transform operators

The event / whole event sequence in the event sequence is processed (i.e. transformed) to different event / whole event sequence map Each event sent by the observed is processed by a specified function, so that it can be transformed into another event That is, the event sent by the observer is converted to any type of event. Application sc ...

Posted by Millar on Thu, 30 Apr 2020 22:53:26 +0200

49.(android Development) imageView picture switching

The image view control of android is very common. It's easy to display pictures. Just set the picture source. Generally, we use the resources in the APP to achieve this. The original image file is placed in drawable or mipmap under res. What I want to achieve this time is to let the control display a picture by default. When I click a button, t ...

Posted by Channel5 on Thu, 30 Apr 2020 22:39:33 +0200