透過集合功能整理內容
你可以依據偏好儲存及分類內容。
check_circle
生命週期和記錄
emoji_objects
程式碼研究室
匯入 DessertClicker 應用程式的範例程式碼。接著新增基本記錄來探索生命週期方法,並瞭解生命週期用途和片段生命週期。
check_circle
處理複雜的生命週期情境
emoji_objects
程式碼研究室
修改 DessertClicker 應用程式來使用 Jetpack 生命週期程式庫。使用 Android Debug Bridge 來模擬應用程式處理程序關閉的情形,並保留及還原應用程式意外關閉時可能會遺失的應用程式資料。
「活動和片段的生命週期」測驗
測驗您所學到的知識,並獲得「活動和片段的生命週期」徽章。
[{
"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":"其他"
}]