一、前言: 普通藍(lán)牙設(shè)備官方文檔 Android 平臺包含藍(lán)牙網(wǎng)絡(luò)堆棧支持,憑借此支持,設(shè)備能以無線方式與其他藍(lán)牙設(shè)備交換數(shù)據(jù)。應(yīng)用框架提供了通過 Android Bluet...
一、前言: 普通藍(lán)牙設(shè)備官方文檔 Android 平臺包含藍(lán)牙網(wǎng)絡(luò)堆棧支持,憑借此支持,設(shè)備能以無線方式與其他藍(lán)牙設(shè)備交換數(shù)據(jù)。應(yīng)用框架提供了通過 Android Bluet...
前言 本文以Ubuntu22.04、AOSP13代碼為例,演示了從安裝環(huán)境, 下載代碼, 到編譯映像和搭建本地AOSP代碼鏡像服務(wù)器的全部過程。 1、安裝Repo 2、初始化...
默認(rèn)情況 WebView 不支持 ,WebView 點擊沒有反應(yīng)。 兼容 重寫 webview 的 webchromeClient 中的 openFileChooser 方法...
Android 10(API 級別 29)引入了多項功能和行為變更,目的是更好地保護(hù)用戶的隱私權(quán)。其中最重要的變化之一就是存儲訪問權(quán)限。 Android 10中,Google...
1、官網(wǎng)下載地址2、破解3、設(shè)置difftool比較默認(rèn)打開BC4、Beyond compare 4 This license key has been revoked 解決...
Android 12 需要更新適配點并不多,本篇主要介紹最常見的兩個需要適配的點: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開發(fā)中通常我們會使用SharedPre...
錯誤: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/...
問題:prebuilts/build-tools/linux-x86/bin/bison: m4 子進(jìn)程失敗: 沒有那個文件或目錄 參考:prebuilts/misc/lin...
屏幕適配相關(guān)概念主流適配方案 一、屏幕適配相關(guān)概念 1、屏幕尺寸單位:英寸表示:手機對角線的物理尺寸 2、屏幕分辨率單位:px表示:寬 × 高,如:720 × 1080 3、...