Android - compare the version number size as an Android Developer
return -1;
}
}
return 0;
} else {
return diff > 0 ? 1 : -1;
}
}
### [] (II) installation of apk
/**
Install APK @param context @param filePath
*/
public static void installApk(Context context, String filePath) {
try {
/**
* provider
* Handle the abnormal in ...
Posted by peytonrm on Wed, 08 Sep 2021 06:56:31 +0200
Glide source code compilation and analysis (Tencent interview reference answers, Android Interview Questions Summary)
public final class RequestOptions extends BaseRequestOptions<RequestOptions> {
private static RequestOptions skipMemoryCacheTrueOptions;
private static RequestOptions skipMemoryCacheFalseOptions;
private static RequestOptions fitCenterOptions;
private static RequestOptions centerCropOptions;
private static RequestOptions circleCropOption ...
Posted by jonstu on Tue, 07 Sep 2021 08:03:08 +0200
FFmpeg is introduced into Android Studio, which is the favorite of the white whoring party
Then let's see how to build an environment for compiling FFmpeg?
Build an environment for compiling FFmpeg
=========================================================================
FFmpeg provides a complete solution, but this solution is written in C. we download the source code of FFmpeg and decompress it to see what the source code of FF ...
Posted by Boxerman on Mon, 06 Sep 2021 06:46:11 +0200
Design pattern - Seven Principles
Seven principles of design mode
brief introduction
The principle of design pattern is actually the principle that programmers should abide by when programming, and it is also the basis of various design patterns (i.e. the basis for why design patterns are designed like this)
Seven principles commonly used in design patterns
Single responsib ...
Posted by YappyDog on Mon, 06 Sep 2021 06:18:21 +0200
Design pattern --- agent pattern
Static proxy
An object provides a proxy with a fixed role to control access to the object. Proxy classes and delegate classes have a common parent class or parent interface, so proxy objects can be used wherever delegate objects are used. The agent class is responsible for request preprocessing, filtering, assigning requests to the delegate cl ...
Posted by nareshrevoori on Sat, 04 Sep 2021 04:17:54 +0200
About proxy pattern and spring AOP
Proxy mode (proxy)
Agent mode is a structural design mode. It provides an agent (agent class) for other objects (delegate class) to control access to the original object, and allows some processing before and after submitting the request to the object, such as preprocessing the message for the delegate class, filtering and forwarding the m ...
Posted by lol on Thu, 02 Sep 2021 21:10:19 +0200