透過集合功能整理內容
你可以依據偏好儲存及分類內容。
check_circle
Datastore 簡介
ondemand_video
影片
選用
和 Android 開發人員關係工程師 Simona Stojanovic 一同探索 DataStore 的運作方式、實作內容、個別用途等主題。
check_circle
Preferences Datastore
ondemand_video
影片
選用
在這部影片中,我們將介紹 Preferences DataStore,這是兩種 DataStore 實作方式的其中一種。歡迎聆聽 Simona 的說明,瞭解如何建立 Preferences DataStore、讀取及寫入資料,以及處理例外狀況。
check_circle
使用 DataStore 將偏好設定儲存在本機
emoji_objects
程式碼研究室
瞭解如何透過 DataStore 在裝置上儲存使用者偏好設定。
check_circle
專案:建立航班搜尋應用程式
emoji_objects
程式碼研究室
建立應用程式,讓使用者選擇航班出發地點,以及瀏覽和儲存航班。
check_circle
後續步驟
ondemand_video
影片
選用
恭喜!您已完成單元 6。在這個單元中,您學到許多寶貴知識,也認識了 SQLite 資料庫、Room 資料庫和 DataStore。只要善用這些技能,您打造的應用程式就能在使用者的裝置本機上持續保留資料。
測驗
測試您學到的知識,並獲得 DataStore 徽章。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]