Android ORM framework GreenDao use details, high paid programmers will
The so-called ORM framework, object relational mapping, is used to make a mapping between relational databases and objects. In this way, when we operate the database, we don't need to deal with complex SQL statements, but just operate it as usual.
4, Project case demonstration
================================================================= ...
Added by stenk on Fri, 17 Dec 2021 07:10:19 +0200
20 minutes to master Android gradle, the middle-aged crisis of programmers
Task declaration format
To declare a task, you only need to add a task before the task name. For example, the following declares a hello task.
task hello
Usually, we attach some execution actions to the task, which are called actions, such as
hello.doFirst{
println "hello first"
}
hello.doLast{
println "hello last"
}
You can a ...
Added by TheDeadPool on Fri, 17 Dec 2021 03:31:57 +0200
Introduction to Android Things development, a collection of large factories
Demo display and hardware construction - light
This is a demo of operating the LED to make it flash. We will introduce the basic methods of operating the hardware through this demo. Let's see the final effect first:
[external chain picture transfer failed. The source station may have anti-theft chain mechanism. It is recommended to save the p ...
Added by arcticwolf on Fri, 17 Dec 2021 01:44:32 +0200
Use of android JNI
jni technology is used to realize the connection between java and c/c + + code, and is widely used in android platform, such as
Start the java virtual machine with local code and create the java running environment. For example, create the java virtual machine after the process zygote startsSystem services are mostly implemented in c/c + +, in ...
Added by naggi on Fri, 17 Dec 2021 00:48:08 +0200
Android boot speed optimization
Problem description
The startup time is too slow compared with the reference machine, about 15s slow. Android system 7.0.
problem analysis
Bootloader -- > kernel -- > zygote -- > PMS -- > AMS -- > launcher involves many levels It can be analyzed with bootchart or directly through log analysis. Unfortunately, the bootchart can ...
Added by lesliesathish on Fri, 17 Dec 2021 00:20:58 +0200
Android network framework OkHttp source code analysis, BAT interview & Advanced
if (result == null) throw new IOException("Canceled");
return result;
} catch (IOException e) {
eventListener.callFailed(this, e);
throw e;
} finally {
client.dispatcher().finished(this);
}
}
We'll use it here `client` Object (actually created above) `RealCall` Passed in when `OkHttpClien ...
Added by wardo on Thu, 16 Dec 2021 22:39:37 +0200
The sudden end of the Flutter network request for Dio -- the application of CancelToken
Sweet date
Programmer Xiao Ming is very happy today, because today is the first anniversary of his love with his girlfriend. As we all know, it is difficult for programmers to find girlfriends. Xiao Ming is currently the only programmer in their office, and has become the envy of many programmers. Xiao Ming's work efficiency is also very high ...
Added by ben.hornshaw on Thu, 16 Dec 2021 17:52:06 +0200
Android official architecture component - Lifecycle
What is Lifecycle?
Lifecycle components refer to Android arch. Various classes and interfaces provided under the lifecycle package allow developers to build classes that can sense the lifecycle aware of other components (mainly activities and fragments).
Why introduce Lifecycle?
As I said earlier, Lifecycle enables developers to build classe ...
Added by GrayFox12 on Thu, 16 Dec 2021 17:25:44 +0200
In 2020, I will use MVVM in the project, the authoritative guide for Android development
Data binding provides two-way binding function, so many frameworks directly inject ViewModel into xml. I personally dislike this practice. It may be that getting up early and Databinding is immature often leads to inexplicable compilation errors XXX Br not found and can't find variable. When using Databinding, I use it more to get the control a ...
Added by taith on Thu, 16 Dec 2021 11:23:39 +0200
[knowledge points] OkHttp principle 8 questions
prefaceOkHttp can be said to be the most common network request framework in Android development. OkHttp is easy to use, extensible and powerful. OkHttp source code and principle are also frequent visitors in the interview However, OKHttp has a lot of source code content. If you want to learn its source code, you are often confused and can't g ...
Added by tnkannan on Thu, 16 Dec 2021 09:49:08 +0200