一、前言: 普通藍(lán)牙設(shè)備官方文檔 Android 平臺(tái)包含藍(lán)牙網(wǎng)絡(luò)堆棧支持,憑借此支持,設(shè)備能以無(wú)線(xiàn)方式與其他藍(lán)牙設(shè)備交換數(shù)據(jù)。應(yīng)用框架提供了通過(guò) Android Bluet...
一、前言: 普通藍(lán)牙設(shè)備官方文檔 Android 平臺(tái)包含藍(lán)牙網(wǎng)絡(luò)堆棧支持,憑借此支持,設(shè)備能以無(wú)線(xiàn)方式與其他藍(lán)牙設(shè)備交換數(shù)據(jù)。應(yīng)用框架提供了通過(guò) Android Bluet...
前言 本文以Ubuntu22.04、AOSP13代碼為例,演示了從安裝環(huán)境, 下載代碼, 到編譯映像和搭建本地AOSP代碼鏡像服務(wù)器的全部過(guò)程。 1、安裝Repo 2、初始化...
一、修改 git config 信息 查看當(dāng)前 git config 信息 修改全局 git config 信息 二、重新生成 SSH Public Key 信息 郵箱地址替...
默認(rèn)情況 WebView 不支持 ,WebView 點(diǎn)擊沒(méi)有反應(yīng)。 兼容 重寫(xiě) webview 的 webchromeClient 中的 openFileChooser 方法...
Android 10(API 級(jí)別 29)引入了多項(xiàng)功能和行為變更,目的是更好地保護(hù)用戶(hù)的隱私權(quán)。其中最重要的變化之一就是存儲(chǔ)訪(fǎng)問(wèn)權(quán)限。 Android 10中,Google...
1、官網(wǎng)下載地址2、破解3、設(shè)置difftool比較默認(rèn)打開(kāi)BC4、Beyond compare 4 This license key has been revoked 解決...
Android 12 需要更新適配點(diǎn)并不多,本篇主要介紹最常見(jiàn)的兩個(gè)需要適配的點(diǎn):android:exported 和 SplashScreen 。 一、android:e...
sealed class BooleanEx {
object INVOKE: BooleanEx()
object IDLE: BooleanEx()
}
fun BooleanEx.other(block: () -> Unit) {
if (this is BooleanEx.INVOKE) {
block.invoke()
}
}
fun Boolean.yes(block: () -> Unit): BooleanEx {
if (this) {
block.invoke()
return BooleanEx.IDLE
}
return BooleanEx.INVOKE
}
fun Boolean.no(block: () -> Unit): BooleanEx {
if (!this) {
block.invoke()
return BooleanEx.IDLE
}
return BooleanEx.INVOKE
}
Kotlin版本SharedPreferences數(shù)據(jù)保存Java版數(shù)據(jù)保存Kotlin版本數(shù)據(jù)保存ContentProvider獲取Context 一、Java版數(shù)據(jù)保存 ??在android開(kāi)發(fā)中通常我們會(huì)使用SharedPre...
錯(cuò)誤:insufficient permissions for device: user in plugdev group; are your udev rules wron...
Ubuntu安裝微信1、https://github.com/wszqkzqk/deepin-wine-ubuntu[https://github.com/wszqkzqk/...
問(wèn)題:prebuilts/build-tools/linux-x86/bin/bison: m4 子進(jìn)程失敗: 沒(méi)有那個(gè)文件或目錄 參考:prebuilts/misc/lin...
屏幕適配相關(guān)概念主流適配方案 一、屏幕適配相關(guān)概念 1、屏幕尺寸單位:英寸表示:手機(jī)對(duì)角線(xiàn)的物理尺寸 2、屏幕分辨率單位:px表示:寬 × 高,如:720 × 1080 3、...