Slide 1

Slide 1 text

Androidʹ΋ Select Photos͕ ΍͖ͬͯͨ Mobileษڧձ Wantedly × νʔϜϥϘ #9 @akatsuki174

Slide 2

Slide 2 text

ࣗݾ঺հ

Slide 3

Slide 3 text

• Android/iOS/FlutterΤϯδχΞ • 1ࣇͷ฼ • ਺ϲ݄ޙʹ2ࣇͷ฼ • גࣜձࣾΏΊΈॴଐ

Slide 4

Slide 4 text

ࠓ೔ͷ࿩

Slide 5

Slide 5 text

• Android 14ͷDeveloper Preview, Google I/O 2023Ͱൃද͞Εͨʮબ୒ͨࣸ͠ਅ/ಈըͷΈɹɹɹ ΞΫηεΛڐՄʯʹ͍ͭͯղઆ

Slide 6

Slide 6 text

ʮબ୒ͨ͠ϝσΟΞͷΈɹɹ ΞΫηεΛڐՄ͢Δʯʁ

Slide 7

Slide 7 text

IUUQTTFDVSJUZHPPHMFCMPHDPNJPBOESPJETFDVSJUZBOEQSJWBDZIUNMIUNM

Slide 8

Slide 8 text

• ΞΫηεڐՄΛ༩͑Δࣸਅ/ಈըΛબ୒͢ΔͨΊͷ UI͕දࣔ͞ΕΔ • બ୒ޙɺଞͷࣸਅ΍ಈըʹΞΫηε͢Δඞཁ͕͋Δ ৔߹͸ɺ࠶౓ϦΫΤετ͢Δඞཁ͕͋Δ

Slide 9

Slide 9 text

Ͳ͔͜Ͱݟͨ͜ͱ͕͋Δ…ʁ

Slide 10

Slide 10 text

J04ʙ

Slide 11

Slide 11 text

READ_MEDIA_VISUAL_ɹ USER_SELECTED ͱ͸

Slide 12

Slide 12 text

• ࠓճ৽͘͠௥Ճ͞ΕΔύʔϛογϣϯ • Ϣʔβ͕બ୒ͨࣸ͠ਅɺ΋͘͠͸ಈըͷΈΞΫηε ΛڐՄ͢Δ • λʔήοτSDKόʔδϣϯʹ͔͔ΘΒͣɺAndroid 14͔Βద༻

Slide 13

Slide 13 text

READ_MEDIA_VISUAL_ɹ USER_SELECTED Λએݴͯ͠ͳͯ͘΋…

Slide 14

Slide 14 text

• ΞϓϦ͕ҎԼͷ͍ͣΕ͔Λཁٻͨ͠৔߹ɺ݁ہʮબ ୒ͨࣸ͠ਅ/ಈըͷΈ…ʯͷબ୒ࢶ͕ग़ͯ͘Δ • READ_MEDIA_IMAGES • READ_MEDIA_VIDEO • ACCESS_MEDIA_LOCATION

Slide 15

Slide 15 text

ैདྷϢʔβͷڍಈ

Slide 16

Slide 16 text

• ͢ͰʹϑϧΞΫηεڐՄ͍ͯ͠Δ৔߹ɺͦͷঢ়ଶ͸ อ࣋͞ΕΔ

Slide 17

Slide 17 text

࣮૷

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

ࢼͯ͠Έͨ݁Ռ

Slide 21

Slide 21 text

• https://github.com/navczydev/ Android14Samples/tree/more-permisisons Λݩʹ ಈ͔ͯ͠Έͨ࿩Ͱ͢ɻ • ͜Ε͔ΒͷΞοϓσʔτͰڍಈ͕มΘΔՄೳੑ͕ɹ ͋Γ·͢ • ʢࢲ͕Կ͔ϛεͬͯΔՄೳੑ΋ΞϦʣ

Slide 22

Slide 22 text

• READ_MEDIA_VISUAL_USER_SELECTEDΛએݴɹ ͨ͠৔߹ • →ڐ୚ΛʮSelect Photosʯʹ͍͔ͯͭ͘͠ͷࣸਅ Λબ୒ • →READ_MEDIA_IMAGES͸falseʹͳ͍ͬͯͨ

Slide 23

Slide 23 text

• READ_MEDIA_VISUAL_USER_SELECTEDΛએݴɹ ͠ͳ͔ͬͨ৔߹ • →ڐ୚ΛʮSelect Photosʯʹ͍͔ͯͭ͘͠ͷࣸਅ Λબ୒ • →READ_MEDIA_IMAGES͕trueʹͳ͍ͬͯͨ • →࣍ճىಈ࣌ʹ͸READ_MEDIA_IMAGES͸falseʹ ͳ͍ͬͯͨ

Slide 24

Slide 24 text

ϕετϓϥΫςΟε

Slide 25

Slide 25 text

• ͦ΋ͦ΋͜ͷύʔϛογϣϯΛ࢖͏ΑΓɺڈ೥ൃද ͨ͠Photo PickerΛ࢖͏ • Photo PickerͳΒڐՄΛऔΔඞཁ͸ͳ͍ • ݖݶͷڐՄঢ়ଶ͸ຖճऔಘ͢Δ • PreferenceͳͲʹڐՄঢ়ଶΛอଘ͍ͯ͠Δͱɺɹ ࠓճͷΑ͏ʹݖݶΞοϓσʔτ͕͋ͬͨ࣌ʹରԠ Ͱ͖ͳ͍

Slide 26

Slide 26 text

·ͱΊ

Slide 27

Slide 27 text

• Կ͸ͱ΋͋ΕAndroidʹ΋Select Photos͕΍ͬͯɹ ͘ΔΑ

Slide 28

Slide 28 text

એ఻

Slide 29

Slide 29 text

IUUQTUFDICPPLGFTUPSHQSPEVDUUZSR4S3"S+8VGTX1[ QSPEVDU7BSJBOU*%8LC+YWG'3TWWZ,/RGVU

Slide 30

Slide 30 text

͓ΘΓ