Android Datastore dynamic creation and source code analysis

Knowledge points involved 1. Principle of coroutines —-> A very good blog introduction. A short story explains what is the relationship between processes, threads, and Kotlin coroutines? 2. Channel knowledge points—->Android-kotlin-Channel is explained in detail 3. Coroutines: CompletableDeferred and structured concurrency Encapsulated DataStoreUtils tool->gitHub Purpose of this blog The company’s use of SharedPreferences can easily […]

Android preference PreferenceFragmentCompat Jetpack DataStore

Jetpack series of articles Chapter 1 “Jetpack Lifecycle for Android front-end and back-end switching detection” Chapter 2 “Jetpack DataStore of Android PreferenceFragmentCompat” This is a series of Jetpack articles, and there are still many that I don’t have time to write. Anyway, I will record a few if I have time. If you have any […]

GIS: DataStore data management framework

1. Architecture design The OGC specification designs the framework for spatial vector data, and GeoTools implements it. The DataStore can be roughly understood as a database instance in a relational database, and the FeatureSource can be roughly understood as a table in a relational database. The DataAccess interface mainly sets operations such as building, reading, […]

Explore the Jetpack PreferenceDataStore principle

Foreword What is DataStore? Jetpack DataStore is a data storage solution, which can store key-value pairs like SharedPreferences, and can also use Protocol Buffers protocol to store typed object data. DataStore uses Kotlin Flow to store data asynchronously. Android officially recommends that we migrate SharedPreferencs to DataStore. Preference DataStore and Proto DataStore DataStore provides two […]

android jetpack DataStore (java) instead of SharedPreferences

Table of Contents How to use Preferences DataStore? import dependencies Create a Preferences DataStore read content write content How to use Proto DataStore? import dependencies create proto Create a Serializer Use DataStore DataStore provides two different implementations: Preferences DataStore and Proto DataStore. Preferences DataStore stores and accesses data using keys Proto DataStore stores data as […]

Six questions about Jetpack DataStore (Proto)

Foreword The previous article analyzed the use and principle of DataStore (Preferences), and this article then explains another implementation form of DataStore: DataStore (Proto). Through this article, you will learn: 1. Why do you need Proto? DataStore (Preferences) benchmarks SharedPreferences, the former is an advanced version of the latter. They are stored based on the […]

Eight questions about Jetpack DataStore (Preferences)

Foreword DataStore is a lightweight storage solution on Android. It is easy to write a simple demo according to the official tutorial. This article mainly analyzes some problems in the process of using DataStore (Preferences), and finds the essence through the problems, which in turn can better guide us to use DataStore reasonably. Contents of […]

Eight questions about Jetpack DataStore (Preferences)

Foreword DataStore is a lightweight storage solution on Android. It is easy to write a simple demo according to the official tutorial. This article mainly analyzes some problems in the process of using DataStore (Preferences), and finds the essence through the problems, which in turn can better guide us to use DataStore reasonably. Contents of […]

vSphere | PythonvSphere Automation SDK for Python Ⅴ– vCenter Folder & Datastore & Cluster APIs

Table of Contents 6. vCenter Folder APIs 6.1 List folder 7. vCenter Datastore APIs 7.1 List datastore 7.2 Get datastore 8. vCenter Cluster APIs 8.1 List cluster 8.2 Get cluster References 6. vCenter Folder APIs Folder service provides operations for manipulating vCenter Server folders. 6.1 List folder Key method: Folder.list() Method Description: Returns information about […]