-
Android OCR Recognition Text Introduction
Recently in the identification of the identity card number, search on the internet after the discovery of the current open source OCR TESSERACT-OCR is relatively strong, it was developed by HP from 1985 to 1995, and later by Google directly responsible, after Google further development, The current TESSERACT-OCR has been significantly improved.
-
Java implementation of Image grayscale
This paper mainly introduces several methods of grayscale, and how to use Java to achieve grayscale. At the same time, this paper analyzes a common but inappropriate Java grayscale implementation, and proves that the grayscale of OPENCV is using "weighted grayscale" method.
-
Custom view for water ripple effect
Today, the main share of water ripple effect: 1. Standard sine-cosine water ripple; 2. Non-standard circular liquid column water ripple; although all are water ripple, but the difference between the two in the realization is relatively big, one simulates the water ripple effect through the sine cosine function, another one will apply to the image Mixed mode (porterduffxfermode);
-
Android custom controls are actually very simple series
A detailed description of the process of Android custom controls, to some extent, the four categories of canvas, Paint, view, and viewgroup that involve control customizations, from shallow to deep, from drawing to measurement to event handling, is a whole new understanding of Android custom controls.
-
Okhttp Source Code Analysis
Android provides us with two ways to interact with http: httpurlconnection and Apache http Client, although both support HTTPS, stream upload and download, configuration timeout, IPv6 and connection pooling, is sufficient to meet the needs of our various HTTP requests. But more efficient use of HTTP can make your app run faster and save more traffic. And the Okhttp library was born for it.
-
Google + team's Android UI test
Android testing is divided into 3 types: unit test, closed UI test (Hermetic UI testing), Monkey test. Distinguishing between UI code and feature code is especially difficult in Android development. Because sometimes activity has both Controller function and view function. Robolectric is an excellent Android testing framework that provides a stub for an Android framework so that the test run is actually run on the JVM, Instead of running tests on Android platforms such as Robotium and instrumentation, this improves speed.
-
A brilliant loading analysis and implementation of the dynamic effect!
The first two days of our side of the boss told me that there is a GIF animation is very good, you can consider to do the project loading, asked if I can achieve, see the effect is really good, but also more innovative, the complexity is not very high, so take the time to do, we first look at the original GIF chart effect:
-
Activitymanagerservice Start-Up process analysis
Activitymanagerservice (AMS) is the core of the Android system, mainly responsible for the four components of the start, switching, scheduling and application management and scheduling, and its responsibilities are similar to the process management and scheduling modules in the operating system.
-
In-depth understanding of Android device Encryption devices encryption
Android has supported a feature since 4.4, which is to encrypt the device. Encryption is natural for security reasons, because the/system directory is read-only, the cell phone in the storage device partition need to protect the remaining/data/partition and SDcard. Obviously,/data/and SDcard store user data (such as data stored in the app runtime) in large numbers, and it's very necessary to encrypt them.
-
In-depth analysis of Java ClassLoader principles
As we all know, when we write a Java program, not whether it is CS or BS application, is a complete Java application organized by several. class files, when the program is run, it calls an entry function of the program to invoke the relevant functions of the system, and these functions are encapsulated in different class files, so it is often necessary to call from this class file another class file method, a system exception is thrown if the other file does not exist. When the program starts, it does not load all the class files used by the program at once, but instead dynamically loads a class file into memory according to the needs of the program through the Java class loading mechanism (ClassLoader), so that only the class file is loaded into memory To be referenced by the other class. So ClassLoader is used to dynamically load class files into memory.
Code & Open Source Library