MQTT protocol for message sending and receiving in Android
MQTT protocol for message sending and receiving in Android
PrefaceMQTT (Message Queuing Telemetry Transport), a message protocol based on the publish/subscribe paradigm, is an extremely simple and lightweight message protocol designed for limited devices and networks with low bandwidth, high latency or unreliability.Today we will focus on the u ...
Posted by rivasivan on Wed, 08 Apr 2020 21:36:54 -0700
Nested scrolling parent2
Article directory
1, Problems and Solutions
2, Implementation principle of NestedScrollingParent2LayoutImpl3
2.1 let's review the nested sliding mechanism.
2.2 take a look at nested Scrollview
2.3 implementation principle of nestedscrollingparent2layoutimpl3
I wrote one before Nested slide &nd ...
Posted by nloding on Wed, 08 Apr 2020 01:01:01 -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
Five popular Android libraries in Q1 2020
Yunqi information:[ Click to see more industry information]Here you can find the first-hand cloud information of different industries. What are you waiting for? Come on!
At the end of the first quarter of 2020, a lot happened in the Android community. The Android 11 development preview has been released and offers many new features - but that's ...
Posted by flientje on Tue, 07 Apr 2020 22:05:25 -0700
[learn Java notes from scratch] ArrayList class, Collection class and List class
You can pay attention to the author's account and the Java notebook from scratch. You can also go to the author's blog Garden to learn from the catalog. This film will be based on the black horse programmer job class video for learning and data sharing, and take notes and their own views. Welcome to study and discuss together.
[learn Java note ...
Posted by BlooPanthr on Tue, 07 Apr 2020 11:02:27 -0700
Remove title bar and status bar from Activity, and switch between Bitmap and drawable
1, Set in code
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//Remove title
requestWindowFeature(Window.FEATURE_NO_TITLE);
//Remove the status bar above the Activity
getWindow().setFlags(WindowManager.LayoutParams. FLAG_FULLSCREEN , WindowManager.LayoutParams. FLAG_FULL ...
Posted by lanas on Tue, 07 Apr 2020 09:56:53 -0700
Java obtains physical address according to IP address (through Baidu API interface)
1. Download and import the dependency package of HttpClient:
httpmime-4.5.2.jar
httpcore-4.4.4.jar
httpclient-win-4.5.2.jar
httpclient-cache-4.5.2.jar
httpclient-4.5.2.jar
Baidu online disk link: https://pan.baidu.com/s/1aNBeVvaSm7ePZ3pDH3HeAA Extraction code: d8tr
2. Create application in Baidu map;
(1) Click the application managemen ...
Posted by todd2006 on Tue, 07 Apr 2020 09:37:37 -0700
Android 9.0 Launcher Workspace load
Load the Workspace entry in / packages/apps/Launcher3/src/com/android/launcher3/model/LoaderTask.java. To learn about the launch process of the Launcher app, please read this article first, https://www.jianshu.com/p/0b273112cd7e
1. The Workspace load calling process is as shown in the figure
Code entry:/packages/apps/Launcher3/src/com/android/l ...
Posted by horsleyaa on Tue, 07 Apr 2020 07:37:51 -0700
Handler message mechanism and memory leak
1. Message mechanism
1.1 post series
By looking at the source code, it is known that the sendMessageDelayed method is the last call made by post(Runnable r), postDelayed(Runnable r, long delayMillis):
// post
public final boolean post(Runnable r){
return sendMessageDelayed(getPostMessage(r), 0);
}
// postDelayed
public final boolean postDe ...
Posted by hstraf on Mon, 06 Apr 2020 20:52:51 -0700
Android uses code to dynamically control the horizontal and vertical display of an interface according to the device type
background
thinking
code implementation
A little bit of progress every dayCome on
background
The Android application developed was originally tested on the mobile phone, but it actually needs to be installed and used for the tablet. When it is on the mobile phone, the effect of vertical display is good, whi ...
Posted by anauj0101 on Mon, 06 Apr 2020 08:36:02 -0700