WiFi Hotspot Development on Android

WiFi hotspot Android Development What is WiFi Wi Fi is a family of wireless network protocols, which is based on IEEE 802.11 protocol. Wi Fi works seamlessly with its wired sister Ethernet. Conditional devices can be interconnected through wireless access points, including wired devices and the Internet. Based on different IEEE 802.11 protoco ...

Posted by mediamind on Tue, 08 Mar 2022 08:01:38 +0100

Hilt Test - Fragment trouble: this needs special treatment, starting a new stove, counterfeiting process, making empty birth, just for a Fragment.

🚪 1. Fragment report Gradle Gradle - Module: def fragment_version = "1.3.1" implementation "androidx.fragment:fragment-ktx:$fragment_version" debugImplementation "androidx.fragment:fragment-testing:$fragment_version" 😓: You see, this is not Android test or test, but debug. We don't have it! 🤗: haven't you? You have to mak ...

Posted by langer on Tue, 08 Mar 2022 05:33:34 +0100

Bitmap memory recycling mechanism

The official has also changed this knowledge point twice Bitmap can be said to be the most common memory consumer in Android. Many oom problems we encounter in the development process are caused by it. Google officials have also been iterating over its pixel memory management strategy. From Android 2.3.3 to 2.3-7.1 on the java heap, and back t ...

Posted by WBSKI on Tue, 08 Mar 2022 04:01:59 +0100

Graphviz draw linked list

Graphviz draw linked list Writing purpose Originally, I wanted to be lazy. For the drawing of linked list, I wanted to draw it on A4 paper, then take a photo as electronic data, and then store it. However, considering my font "catch chicken", I didn't want to save it in the photo album or upload the photo to a hardware medium for st ...

Posted by robburne on Tue, 08 Mar 2022 03:56:07 +0100

Network debugging assistant: Android APP integrates TCP, UDP, classic Bluetooth and low-power Bluetooth debugging demo

1. Preface I finally don't need to debug a hardware device and install an APP. If I download someone else's network debugging assistant in the APP store and have advertisements, I might as well write a relatively complete network debugging assistant directly. At present, the supported functions include tcp client and server, udp, low-power Blu ...

Posted by rowman on Tue, 08 Mar 2022 00:18:17 +0100

Java enumeration based on Java

Ramble Yesterday, I happened to encounter a small problem with enumeration, and then found that I am not so familiar with it. Then in development, enumeration is used very much, so I have today's article. What is enumeration Enumeration in Java is a type, just as the name suggests: it is enumerated one by one. Therefore, it generally represe ...

Posted by ben2k8 on Mon, 07 Mar 2022 23:22:58 +0100

Exploration of Android art development - 4 Custom View

1. Customize the classification of View 1. Inherit View and override onDraw method It is mainly used to realize some irregular effects. This effect is not convenient to be achieved by layout combination. It usually needs to display some irregular graphics statically or dynamically, draw them, and support wrap_content, and supports padding. 2. ...

Posted by fezzik on Mon, 07 Mar 2022 18:06:15 +0100

Handler source code analysis

Handler parsing in Android Understanding Handler 1. What is a Handler Handler is a very important component of android messaging processing mechanism. It is often used by working threads to update UI threads and deliver messages, so as to realize the communication between threads. 2. Why use Handle Multithreading is often involved in our ...

Posted by Confusion101 on Mon, 07 Mar 2022 12:17:36 +0100

A new way to create a ViewModel, CreationExtras?

Androidx-Lifecycle has recently moved to version 2.5.0, one of the most important changes being the introduction of the concept of CreatioinExtras. One sentence summarizing the role of CreationExtras: helps us gracefully get initialized parameters when creating ViewModel s 1. Status Quo Review how ViewModel s have been created so far val v ...

Posted by Trium918 on Sun, 06 Mar 2022 19:15:30 +0100

Handler core source code analysis

  catalogue Use of Handler Handler initialization send message Processing messages Blocking and wakeup of MessageQueue block awaken The inspiration of Handler to our developers Highlight 1 Highlight 2 When will Looper be launched Handler common interview questions preface For a developer, reading source code is a required ...

Posted by Andy-H on Sun, 06 Mar 2022 15:00:36 +0100