Study Notes - Week 3

This week's Android learning summary activity life cycle test: Write the following code in MainActivity.java public class MainActivity extends AppCompatActivity { private static final String TAG = "life_cycle"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); s ...

Posted by gamerzfuse on Sat, 14 May 2022 09:20:05 +0300

Project training - AI based intelligent video clipper displays video frames and cuts videos

preface For each video clip returned from the back end, the front end needs to ensure that the user can cut and fine tune it. The specific implementation effects are as follows: Here, the whole process can be disassembled into the following steps: Acquisition and display of all video framesImplementation of video sliding marquee RangeS ...

Posted by melrse on Fri, 13 May 2022 00:59:09 +0300

Learning notes ----- Android integrates Gaode map to obtain the current city location (no map is displayed)

Recently, there is a function to locate the current city in the project. At the beginning, I chose to use Baidu map api to develop this function. However, according to the code written in the development document provided by Baidu map, the obtained city location is null every time I run. Strangely, I can get the longitude and latitude of the cu ...

Posted by karassik on Tue, 10 May 2022 10:10:59 +0300

How to quickly realize the filter function with Huawei image service

1. Introduction With the increasingly powerful function of mobile phone photographing, photographing and repairing pictures have become the necessary skills of each of us. The so-called "taking pictures for five minutes and repairing pictures for two hours" has also become a social tool for many young people. Therefore, filters and ma ...

Posted by ripcurlksm on Tue, 10 May 2022 06:59:19 +0300

R8 compiler: downsizing for Kotlin libraries and Applications

Author / Morten Krogh Jespersen, MADS ager R8 is the default program reducer for Android. It can reduce the size of Android applications by removing unused code and optimizing other code. R8 also supports reducing the size of Android library. In addition to generating smaller library files, the library compression operation can also hide the n ...

Posted by frymaster on Sun, 08 May 2022 13:00:19 +0300

Fragment usage of Android

preface Xiaomeng is engaged in iOS development. She studied fluent two years ago, which is very good. Now Xiaomeng wants to connect iOS and android with fluent as the medium, and can call each other. She finds that iOS and Android have many similarities, so it is not difficult to learn. iOS is the most difficult for all front-end languages. Pr ...

Posted by lamia on Sun, 08 May 2022 03:02:02 +0300

Collection of ADB basic instructions for Android debugging

ADB basic instruction author: Zhu Hongxi notice: Updating Basic Usage Command syntax Specify the target device for the command Start / stop View adb version Run adbd with root privileges Specify the network port of the adb server Device connection management Query connected devices / emulators USB connection Wireless connection ...

Posted by jayskates on Sat, 07 May 2022 15:09:24 +0300

Use of annotations in Android

preface Android Support Library has introduced a new annotation library since version 19.1, which contains a lot of meta annotations. Using them to modify our code can enable us to improve the development efficiency of the program and find problems earlier. And standardize the code to make the code more readable. In this article, let's briefly ...

Posted by needphphelp on Sat, 07 May 2022 05:41:38 +0300

After Jetpack's Navigation fallback, the page is destroyed

1, Emerging phenomena Use Navigation to jump between fragments. When you go back, you find that the data on the previous Fragment page is gone. After investigation, it is found that the page has been re executed onCreateView, that is, the page has been re created. In this way, the experience effect is different from that of previous multiple ac ...

Posted by icedude on Sat, 07 May 2022 03:40:39 +0300

Database relationship in Room

A very important part of designing a relational database is to split the data into related data tables, and then integrate the data in a logical way in line with this relationship. from Room 2.2 Starting with the stable version of, we can use one @Relation Annotations to support all possible relationships between tables: one-to-one, one to ma ...

Posted by zingbats on Fri, 06 May 2022 23:16:39 +0300