Preliminary Study on Android JetPack Component-CameraX

CameraX is also a JetPack component from Google, which is a new gadget, so I want to share my experience in using it in my project. What is CameraX? The Google Developer Documentation gives you the following evaluation of AmeraX: CameraX is a Jetpack support library designed to help you streamline the development of camera applications.It pro ...

Posted by a6000000 on Tue, 05 May 2020 12:14:10 -0700

Serialization and deserialization of Gson

serialization and deserialization Java serialization refers to the process of converting Java objects into transportable byte sequences, while Java deserialization refers to the process of restoring transmitted byte sequences to Java objects. These two processes make it very convenient for us to store and transfer dat ...

Posted by Buglish on Mon, 04 May 2020 14:43:19 -0700

Retrofit Simple Encapsulation

Retrofit Simple Encapsulation In a simple period, use a demo to show: build.gradle configuration file: compile 'com.squareup.retrofit2:retrofit:2.3.0' compile 'com.squareup.retrofit2:converter-gson:2.3.0' compile 'com.squareup.retrofit2:adapter-rxjava:2.3.0' compile 'com.squareup.okhttp3:logging-interceptor:3.4.1' ...

Posted by jakeklem on Mon, 04 May 2020 11:55:58 -0700

Integration of Google map correct signature packaging posture

After integrating Google Map, everything is normal in debug mode. The map is displayed normally. After signing and packaging, the app runs and finds that the map is not displayed After a stack overflow, This is the solution The reason is that the applied Google map API [key] is placed in the debug folder, and there is no corresponding rel ...

Posted by Supplement on Sun, 03 May 2020 02:44:57 -0700

Android OpenCV tutorial one environment configuration

At the beginning of the course, the environment is arranged to run the program 1. Download resources https://github.com/opencv/opencv/releases/tag/3.2.0 Download opencv-3.2.0-android-sdk.zip and unzip 2. Build a new project, and then lead the package (1) First, create a new Project, and then import the extracted folder sdk/java as a module ...

Posted by mikesheridan5 on Sun, 03 May 2020 00:00:43 -0700

General purpose Gradle package obfuscates Jar and merges Jar referenced by a third party (Gradle 3.0)

There are requirements to provide SDK to customers, in the form of jar package Our project references the jars of the third party (actually the jars of another company project), so we also need to type the jars of the third party into the SDK Search online found that the information is not very perfect, comprehensive, their own implementation ...

Posted by LAMP on Sat, 02 May 2020 22:21:02 -0700

Fresco basic use

Edit the build.gradle file: dependencies { // Other dependencies compile 'com.facebook.fresco:fresco:0.12.0' } network right <uses-permission android:name="android.permission.INTERNET" /> The following dependencies need to be added as required: dependencies { // When the machine on API < 14 support ...

Posted by vitalyb on Thu, 30 Apr 2020 15:05:32 -0700

Detailed tutorial of Android crawling web page JSON data [novice]

In recent days, we have done an Android task to get Json. We found that Jsoup can only get static pages, but not dynamic pages. Some students corrected it for me: Jsoup can crawl the dynamic page, but it must add the request header (data). The following is the correct example: String url = "Your web interface"; Map data = Maps.newHashMap(); d ...

Posted by colinexl on Wed, 22 Apr 2020 21:57:11 -0700

Android | teaches you how to use Huawei HMS MLKit machine learning service to develop a photo translation app

Introduction I think there must be a lot of little friends who like to travel. It's better to have a tour abroad. Before the tour, we will make all kinds of strategies on the routes of eating, wearing, living, traveling and playing, and then start with full expectation Imaginary Tourism          &ems ...

Posted by jokobe on Tue, 07 Apr 2020 22:41:04 -0700

Gradle this article is enough for 08 wrapper

Use of wrapper Gradle Wrapper is the recommended usage of gradle. This article will illustrate how to use it with specific examples. Gradle Wrapper The Gradle Wrapper is actually a script, which can be used to download and use the specified version of gradle. It can be downloaded before use as required, effectively avoiding environment consiste ...

Posted by jfontein on Sun, 05 Apr 2020 18:29:11 -0700