Share
Embed
What's new in Android IO23 Daejeon
Google I/O Extended Daejeon 2023
https://festa.io/events/3537
대전 IO extended 23 에서 안드로이드 새롭게 발표된 소식을 공유하기 위한 발표자료 입니다.
Veronikapj
June 10, 2023
Transcript
57 slides
-
Android Studio Bot Kotlin / Compose ѐੋࠁ ࠁഐ ߂ ࠁউ
Form Factors -
ѐੋ ࠁ ࠁഐ ߂ ࠁউ https://developer.android.com/about/versions/14/changes/partial-photo-video-access?hl=ko ࢎ & ز࢚ ੌࠗ(ࢶఖೠ
Ѫ݅) ঘࣁझ ӂೠ ࠗৈ READ_MEDIA_VISUAL_USER_SELECTED ࢎ ߂ ز࢚ ࢶఖ : Android14 ࢜۽ ӝמ ݽف ೲਊ : ӂೠ ೲਊ উೣ : ঘࣁझ Ѣࠗ -
ѐੋ ࠁ ࠁഐ ߂ ࠁউ https://developer.android.com/about/versions/14/behavior-changes-14?hl=ko ঐद ੋబח ઁ Ӓ݅
= ঈࢿ জ জ ղࠗ Componentীࢲ ࢎਊೡ ঐद ੋబܳ о۽ ޅೞѱ ؾפ. val intent = Intent("com.example.app.PAY") startActivity(intent) Exception ߊࢤ -
ѐੋ ࠁ ࠁഐ ߂ ࠁউ https://developer.android.com/about/versions/14/behavior-changes-14?hl=ko ঐद ੋబח ઁ Ӓ݅
= ঈࢿ জ জ ղࠗ Componentীࢲ ࢎਊೡ ঐद ੋబܳ о۽ ޅೞѱ ؾפ. val intent = Intent("com.example.app.PAY") intent.setPackage("com.example.app") startActivity(intent) ݺद ੋబ ࢎਊ -
ѐੋ ࠁ ࠁഐ ߂ ࠁউ https://developer.android.com/guide/components/intents-filters?hl=ko#Receiving ঐद ੋబীח Exported Component
݅ ࢎਊ оמ! <activity android:name=".AppActivity" android:exported=“false"> <intent-filter> <action android:name="com.example.action.APP_ACTION" /> <category android:name="android.intent.category.DEFAULT"/> </intent-filter> </activity> ঐद ੋబ ࢎਊ ࠛо -
ѐੋ ࠁ ࠁഐ ߂ ࠁউ https://developer.android.com/guide/components/intents-filters?hl=ko#Receiving <activity android:name=".AppActivity" android:exported=“true”> <intent-filter>
<action android:name="com.example.action.APP_ACTION" /> <category android:name="android.intent.category.DEFAULT"/> </intent-filter> </activity> ?? exported=“true” ?? -
ѐੋ ࠁ ࠁഐ ߂ ࠁউ https://developer.android.com/topic/security/risks/android-exported?hl=ko exported=“true” ?? • true
ݽٚ জ Activityী ঘࣁझೡ ࣻ Ҋ प೯ೡ ࣻ णפ • false (Default) э গܻா࣌ী ח ҳࢿਃࣗա زੌೠ ࢎਊ IDܳ о গܻ ா࣌ ژח ӂೠ ח दझమ ҳࢿਃࣗ݅ Activityਸ प೯ೡ ࣻ ण פ. -
ѐੋ ࠁ ࠁഐ ߂ ࠁউ https://developer.android.com/topic/security/risks/android-exported?hl=ko exported=“true” • true ݽٚ
জ Activityী ঘࣁझೡ ࣻ Ҋ प೯ೡ ࣻ णפ ࢲ࠺झ Ѣࠗ ҕѺ(DoS), জ ղࠗ ӝמਸ ࣻೞӝ ਤ೧ ղࠗ Componentী ࠗೞѱ ঘࣁझೞח ܲ জ, хೠ ࠁ ਬ, ஂডೠ গܻா࣌ ஶఫझীࢲ ٘ प೯ -
ѐੋ ࠁ ࠁഐ ߂ ࠁউ ࠺ߣഐ হח ࣁ࢚, Passkey ਗ
https://github.com/android/identity-samples/ CredentialManager Credential Manager API 1. জীࢲ Google ҅ ࢶఖ 2. Face / ޙ / ചݶ pin ਫ਼Ә ೧ઁ -
জীࢲ ҅ ࢤࢿ ҳӖ ҅ োز ਫ਼Ә ߑध ࢶఖ ޙ
/ PIN / Face ੋૐ (झܽࢫ ࠛо) ࢿҕ ! জীࢲ ҅ ࢤࢿೞӝ https://github.com/android/identity-samples/CredentialManager -
Compose for TV TvLazyColumn { items(contentList) { content -> TvLazyRow
{ items(content) { cardItem -> Card(cardItem) } } } Alpha -
Compose Pager https://developer.android.com/jetpack/compose/layouts/pager HorizontalPager(pageCount = 10) { // Our page
content Text( text = "Page: $page", modifier = . . . ) } -
Compose Pager https://developer.android.com/jetpack/compose/layouts/pager VerticalPager(pageCount = 10) { // Our page
content Text( text = "Page: $page", modifier = . . . ) } -
Flow layouts in Compose https://developer.android.com/jetpack/compose/layouts/flow FlowRow( . . . )
{ // Flow content } FlowColumn( . . . ) { // Flow content } о۽ ࣁ۽ -
Compose Compose Debugging “Composableীࢲ recomposing ੌযաҊ חؘ ח যڃ ۄఠо
ਗੋ غח ݽܰѷযਃ” Debugging Jetpack Compose IO23: https://youtu.be/Kp-aiSU8qCU -
Compose Recomposition State > Podcasts = Unstable > onTogglePodcastFollowed =
Uncertain > Modifier = static Android Studio Hedgehog Unchanged : ߸҃غ ঋ Changed : ܲ чਵ۽ ߸҃ؽ Uncertain : ч ߸҃ ؼ ݈ ই Ѿغ ঋ State : ч ߄Շ ঋ Unstable : ࠛউೠ ఋੑ Debugging Jetpack Compose IO23 https://youtu.be/Kp-aiSU8qCU -
Form Factors ಪ ࢲ࠺झࠁ క࠶݁ীࢲ ਬ ࢎਊदр 70% ૐо How
to build great Android apps for large screens and foldables IO23 : https://youtu.be/5JQjk3ZqPWc -
Form Factors https://developer.android.com/guide/practices/enhanced-letterboxing Size compatibility mode (ࢎૉ ഐജࢿ ݽ٘) (Android
12L ࢚) জ ചݶ ߑೱ Ҋغয Ѣա ӝܳ ઑೡ ࣻ হח ҃ दझమীࢲ Letterbox ܻ ࢎਊח ݽٚ জਸ Multi-window ݽ٘۽ ജ оמ app configurationী ҙ҅হ ٣߄झܳ о۽ ژח ࣁ۽۽ ഥೞח Ѫ оמ -
Form Factors Configuration Changes https://developer.android.com/guide/topics/resources/ runtime-changes?hl=ko ചݶ ӝ, ഥ ചݶ
ࢎૉ ߸҃, ژח Multi-window ݽ٘ ഋ ചݶ ӝӝীࢲ ੌ߈ override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) val configurations = resources.configuration configurations.screenWidthDp configurations.screenHeightDp configurations.orientation configurations.layoutDirection configurations.fontScale configurations.fontWeightAdjustment configurations.densityDpi configurations.locales } -
Form Factors class MainActivity : Activity() { lateinit var state:
SomeState } Crash ! Configuration Changes Activity ࢤࢿ lateinit var ਕ ଵઑೞѱ غݶ Crash! -
Form Factors Best practices for saving UI state on Android
IO23 : https://youtu.be/V-s4z7B_Gnc Save UI State ӝӝܳ ഥ दఃѢա ਸ ٸ, ೞ؍ সਸ ਬೡ ࣻ ب۾ -
Form Factors https://developer.android.com/docs/quality-guidelines/large-screen-app-quality?hl=ko ചݶ ਗ ഐജࢿ ܻझ ഋ ചݶ ਗ
Tier 3 (ӝࠄ) ഋ ചݶ ୭ച Tier 2 (ࣻ) ഋ ചݶ ର߹ച Tier 1 (୭Ҋ) জ ചݶ, ݣ౭ਦب ਗ Letterbox ܻ غ ঋ ഐജࢿ ݽ٘о ইש ఃࠁ٘, ݃झ ١ ৻ࠗ ੑ۱ ਗ ݽٚ ചݶ ӝ ߂ ҳࢿী ݏѱ ۨইਓ ୭ച ৻ࠗ ੑ۱ Ҋә ਗ క࠶݁, ಫ؊࠶, ChromeOS নೞҊ ୭ ࢎਊ ജ҃ ਗ ݣ౭కझఊ, ಫ؊࠶, ٘ېӒ & ٘܂ झఋੌ۞झ ੑ۱ ਗ -
Wear OS https://developer.android.com/wear?hl=ko Wear OS ࢜۽ ӝמٜ Ongoing Activities API
٘ Watch Face Studio ೯ ੋ ഝزਸ द о ݆ ࢎਊೞח ࠁ৬ সী ࡅܰѱ ঘࣁझ ٬ হ ݅٘ח द҅ചݶ ٣ੋ -
Wear OS https://developer.android.com/wear?hl=ko Ongoing Activities API ఋݠ ղ࠺ѱ࣌ ࣁࠗ ҃۽
উղ ٣য ࢤ ೯ ੋ ഝزী ೧ ࣘੋ ঌܿਸ द -
https://developer.android.com/wear?hl=ko Wear OS Card զॿ ഛੋ ఋݠ ࢸ ೖפझ ೯
ࡅܲ ز द ֢ې ࢤ झா ૌѹ ח োۅ Tile API -
Wear OS Watch Face Studio (द҅ ചݶ झౚ٣য়) Wear 3.0
(API 30) ࢚ -
Form Factors https://developer.android.com/design/ui Design Hub Design for Mobile Expand to
large screens Glance at Wear OS Design for TV пઙ ࢠ ٘ ನೣ -
Android Studio Stable 2023.04 What's new in Android development tools
IO23 : https://youtu.be/7lubRrkxagk https://developer.android.com/studio/releases?hl=ko • Preview ਗ Themed app icons (Android 13) Dynamic Color(Material 3) • Live Edit Update (पदр ࣻ ߈) • Compose Profiler • Network Inspector ې о۽ӝ • App Quality Insight ఠ ߂ Ѩ࢝ ୶о -
Android Studio Flamingo ېਸ о۽Ѣա ؊ ࣻ, ࠄޙ ࣻ
оמ Network Inspector -
https://developer.android.com/studio/preview/studio-bot Android Studio Bot • Add to editor ܼ ೠ
ߣਵ۽ ࢤࢿػ ٘ ୶о • ҙ۲ ޙࢲ۽ ߄۽ оӝ • ٘ ߬झীࢲ Ask Studio Bot ਃ ӝמ -
хࢎפ! ߓ GDG Android Korea, ֎ߡઁ veronikapj Resources ݂
: ठۄ٘ ߹ о ৽ଃ ೞױী णפ