Android 9.0 connects multiple Bluetooth devices to get device information in use

After Android 9, it supports a mobile phone to connect multiple Bluetooth devices at the same time. Take a mobile phone to connect 2 Bluetooth headphones. For example, how to get a list of multiple devices can refer to the following code. BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); adapter.getProfileProxy(this, new Bluetoot ...

Posted on Thu, 03 Oct 2019 16:02:30 -0700 by mrwowza

BCrypt Encryption Verification

Microservice BCrypt Cryptographic Encryption 1 BCrypt cryptographic encryption 1.1 Preface No application can save passwords in plain text, considering security. Password should be encrypted by hashing algorithm. There are many standard algorithms such as SHA. Or MD5, combined with salt, is a good ...

Posted on Wed, 02 Oct 2019 10:23:30 -0700 by sogno

AES Encryption and Decryption Example (walker)

AES introduction Advanced Encryption Standard (AES), also known as Rijndael Encryption, is a block encryption standard adopted by the United States federal government.This standard is used to replace the original DES (Data Encryption Standard), which has been analyzed by many parties and widely used all over the world. After a five-year selecti ...

Posted on Tue, 01 Oct 2019 10:20:53 -0700 by d-woo

Design Patterns - Builder Patterns

Introduction to Builder Model Definition Separating the construction of a complex object from its representation allows the same construction process to create different representations Users only need to specify the type they need to build to get them. The construction process and details need not ...

Posted on Mon, 30 Sep 2019 20:23:50 -0700 by subwayman

js calls mobile cameras or albums and displays pictures.

Design sketch Mobile browser and Wechat open the web page, all support calling camera to take photos and open albums. Look first at the final results: Every time you click "Click Upload", you can choose the album or take photos. After the selection, you can show one more picture. There is no upload server. Click "Re-upload&qu ...

Posted on Mon, 30 Sep 2019 14:14:21 -0700 by sharmeen

python third-party module - itchat

Introduction to itchat module Itchat is an interface based on Python 3, which encapsulates the web page version of wechat and sends and receives messages. using itchat module in python, we can quickly get friends'information and so on. Send messages to mobile assistants import itchat #Third-party m ...

Posted on Mon, 30 Sep 2019 10:18:50 -0700 by hendoyeah

Flutter's Basic Widget

Flutter's Basic Widget Preface 1: I will update some Flutter text tutorials in the next few days.Update progress: at least two articles per week; Location of update: first launched on the public number, the next day updated on digging, thinking, developers headlines and other places; More Exchanges: You can add my Weibo 372623326, pay attention ...

Posted on Fri, 27 Sep 2019 03:06:13 -0700 by kpzani

Netty Source Code Analysis--Length Field Based Frame Decoder

This article mainly introduces the use of Length Field BasedFrameDecoder decoder custom protocol. Usually, the format of the protocol is as follows: Length Field BasedFrameDecoder is an important class for netty to solve the problem of unpacking and sticking. Its main structure is header+body structure. We only need to pass in the correct pa ...

Posted on Sun, 22 Sep 2019 21:05:34 -0700 by googlit

Qt Writing Custom Control 58-Histogram Symmetry

1. Preface This control is also not an original control. It comes from the code on the reference network. Symmetrical as its name implies, it divides the canvas into upper and lower parts, automatically draws the set value according to half the canvas height as the reference height, and then increases the dynamic transition effect, which is sim ...

Posted on Sun, 22 Sep 2019 17:49:46 -0700 by sundru

10 minutes to learn react basics quickly

Blog Text 9102, if you don't know react yet, I hope this article can help you quickly understand the basics of react.js. Create Project Use create-react-app Tools quickly create React SPA s. # Create Project yarn create react-app my-app cd my-app # Run program in development mode yarn start Initial project structure: my-app/ README.md no ...

Posted on Sun, 22 Sep 2019 09:12:04 -0700 by tekken00