Android

(221)

Android 项目中 compileSdkVersion targetSdkVersion minSdkVersion buildToolsVersion 的区别

之前用 Android Studio 开发小工具 APP 的时候,没有在意 compileSdkVersion targetSdkVersion minSdkVersion buildToolsVersion 这几个 gradle 配置参数

Android 项目如何从 github 引用三方模块

在引用 STM32 SDK 的时候,遇到了麻烦: 这个 SDK 模块在 github 上: https://github.com/STMicroelectronics/BlueSTSDK_Android ## 现有的方

STM32 蓝牙模块对应的 Android 列表页源码梳理

## BlueST SDK > BlueST is a multi-platform library (Android and iOS supported) that permits easy access to the data e

Android API 无法获取蓝牙 BLE Attribute Handle 值

最近写了一个 [Android APP 用于快速配置蓝牙网关(已上架 Google Play)](https://play.google.com/store/apps/details?id=com.sunzhongwei.ble),但是基本

BLE Scan: Privacy policy

Welcome to the BLE Scan app for Android! This is an Android app developed by Zhongwei Sun. The app is available on Go

Material dialogs MaterialAlertDialogBuilder 中添加文本编辑框

## setView 官方 Material Design 3 的文档中并没有详细的 MaterialAlertDialogBuilder 使用说明。 https://github.com/material-components/m

Android 哪些操作应该放到 ViewModel 中

## 权限申请是否应该放到 ViewModel 中 有此疑问的原因是,我看到权限相关的操作,需要传入 Context 参数。 ``` private fun isLocationPermissionGranted(): Boole

Android RecyclerView Adapter ViewHolder 中获取 Activity

之前记录过[如何在 Fragment 中获取父级 Activity](https://www.sunzhongwei.com/call-activity-method-in-android-fragments),这次发现需要在 Recycl

Android 使用 LiveData 显示实时状态变化

例如加载数据时, 显示转圈提示。或者显示 connecting / finding data ... 也可以加上动态图标: https://github.com/material-components/material-comp

Android RecyclerView 嵌套显示 BLE 蓝牙 Service 的 Characteristic 子项

例如,外层 RecyclerView 显示的是一个 BLE 蓝牙设备的 Service 列表; 内存嵌套的 RecyclerView 显示的各个 Service 所包含的 Characteristic 特性列表。 点击展开 Serv