Androidアプリを作る 第4回

9b6ca173883528d3bd047ca8f20b0bce?s=47 nonylene
November 30, 2016

Androidアプリを作る 第4回

9b6ca173883528d3bd047ca8f20b0bce?s=128

nonylene

November 30, 2016
Tweet

Transcript

  1. "OESPJEΞϓϦΛ࡞Δ  ,.$OPOZMFOF "OESPJE4UVEJPɾϑΝΠϧߏ੒

  2. ࣗݾ঺հ w OPOZMFOF ͷʹΕΜ  w ,.$ճ w ΧʔϏΟͰ͢ w

    τϦϓϧσϥοΫεྑ͍Ͱ͢ w SPPU
  3. ࣗݾ঺հ w OPOZMFOF ͷʹΕΜ  w εϚϗΞϓϦͱ͔ w 5XJUUFS(JU)VCFUD w

    IUUQOPOZMFOFIBUFOBCMPHKQ
  4. ͜Μ͹Μ͸

  5. ࠓ೔΍Δ͜ͱ  ࡞ΔΞϓϦͷ४උ  "OESPJE4UVEJPͷ͔͍͔ͭͨ  ϓϩδΣΫτͷϑΝΠϧߏ੒

  6. ࡞ΔΞϓϦͷ४උ

  7. (JUͷઃఆ w ͋ͱͰ(JUؔ܎ͷػೳ΋આ໌͠·͢ w DPNNJUͱQVTIΘ͔Ε͹0,

  8. ࡞ΔΞϓϦ w 4MBDLͷπʔϧͬΆ͍ΞϓϦ࡞Γ·͢ w ͱΓ͋͑ͣ͸౤ߘ͔Βͬͯײ͡Ͱ͢Ͷ

  9. ϓϩδΣΫτ࡞੒ w ৽͍͠ΞϓϦΛ࡞Γ·͢ʂʂʂʂ w ୈೋճεϥΠυΛࢀর w IUUQTTQFBLFSEFDLDPNOPOZMFOFBOESPJEBQVSJXP[VPSVEJIVJ w ৽ϓϩδΣΫτ͸'JMF/FX/FX1SPKFDU w

    ໊લɾύοέʔδ͸ࣗ༝ʢ.Z4MBDLͱ͔ʁʣ
  10. "OESPJE4UVEJP

  11. ֓ཁ

  12. "OESPJE4UVEJP w *OUFMMJ+ϕʔεͷ*%& w "OESPJE։ൃͷελϯμʔυ w ུͯ͠"4ͱ΋

  13. ύωϧ

  14. جຊతʹࢀߟఔ౓Ͱ

  15. None
  16. w 1SPKFDUϓϩδΣΫτͷϑΝΠϧϥΠϒϥϦ w 4USVDUVSFϓϩάϥϜͷߏ଄ w #VJME7BSJBOUTϏϧυ͢Δͱ͖ͷछྨ
 w جຊతʹ1SPKFDUΛ։͍͓ͯ͘

  17. w දࣔͷ࢓ํɾछྨΛબ΂Δ w z1SPKFDUz͕Φεεϝ w λϒͷԣͷϘλϯ͔ΒબͿ

  18. None
  19. w ࠨ͔Β w .BLF+BWBͷϏϧυΛ͢Δʢ"1,͸Ͱ͖ͳ͍ʣ w 3VO$POpHVSBUJPO"OESPJE্Ͱಈ͔͢ઃఆ w جຊతʹ͸ͦͷ··Ͱ0, w 3VOΞϓϦΛίϯύΠϧͯ͠ಈ͔͢

    w %FCVHσόοά͢Δʢޙड़ʁʣ
  20. w 3VOXJUI$PWFSBHFςετ༻ػೳ w "UUBDI%FCVHHFS୺຤Ͱಈ͍͍ͯΔΞϓϦΛ
 σόοά w 3FSVOΞϓϦΛ্ཱͪ͛௚͢ w 4UPQσόοΨͳͲΛఀࢭ͢Δ

  21. w "7%.BOBHFSΤϛϡϨʔλͷ؅ཧ w (SBEMF4ZOD(SBEMF Ϗϧυʹ࢖༻ ࠶ಡࠐ w 1SPKFDU4USVDUVSFϓϩδΣΫτͷઃఆ w 4%,.BOBHFS"OESPJE4%,ͷ؅ཧ

    w ඞཁͳ΋ͷ͸·ͨͦͷ࣌ʹઆ໌͠·͢
  22. None
  23. w 3VOΠϯετʔϧͳͲͷ࣮ߦϩά w .FTTBHFT֤छϝοηʔδ w "OESPJE.POJUPS"OESPJEͷϩά w &WFOU-PH*%&ͷΠϕϯτϩά w (SBEMF$POTPMF(SBEMFͷϩά


    w ։ൃ࣌͸"OESPJE.POJUPSΛΑ͘ݟΔ
  24. None
  25. w ࠨͷόʔͷ˔σόοάͷϒϨʔΫϙΠϯτ w ӈͷόʔͷ—ͳΜ͔͓͔͍͠ͱ͜Ζ w "MU &OUFSศར

  26. ศརγϣʔτΧοτ w 4IJGU  w ϑΝΠϧɾؔ਺ʹδϟϯϓ w ػೳݺͼग़͠ w $USM

    4IJGU ' w ϓϩδΣΫτ಺ݕࡧ
  27. HJU࿈ܞ

  28. *OUFMMJ+ͷHJU࿈ܞ w ΤσΟλʹࠩ෼දࣔ w BEEDPNNJUQVTIQVMMFUDʜ

  29. *OUFMMJ+ͷHJU࿈ܞ w HJUϨϙδτϦͷ࡞੒ w $74
 *NQPSUJOUP7FSTJPO$POUSPM
 $SFBUF(JU3FQPTJUPSZʜ w ৔ॴ͸ϓϩδΣΫττοϓ

  30. *OUFMMJ+ͷHJU࿈ܞ w Լʹ7FSTJPO$POUSPM͕ొ৔ w 6OWFSTJPOFE'JMFTΛશͯ%FGBVMUʹ git add

  31. *OUFMMJ+ͷHJU࿈ܞ w 7$4ϘλϯͰcommit w ϝοηʔδೖྗޙɺl$PNNJUBOE1VTIz

  32. *OUFMMJ+ͷHJU࿈ܞ w SFNPUFઃఆ w ઌ΄Ͳ࡞ͬͨ(JU)VCͷ
 ϨϙδτϦࢦఆ w (JU)VC΁1VTI

  33. *OUFMMJ+ͷHJU࿈ܞ ˡมԽͨ͠ϑΝΠϧ ˡBEEͯ͠ͳ͍
 ৽͍͠ϑΝΠϧ w ద౰ʹDPNNJUQVTI͍ͯͩ͘͠͞

  34. ϓϩδΣΫτͷ ϑΝΠϧߏ੒

  35. جຊతʹࢀߟఔ౓Ͱ

  36. • / w .idea/ *%&ͷઃఆ w app/ BQQϞδϡʔϧ w ΞϓϦͷຊମ

    w build/Ϗϧυ੒Ռ w gradle/ HSBEMFຊମ
  37. • / w build.gradle
 (SBEMFશମͷϏϧυͷ੍ޚ w ࠓճ͸ͨͿΜ৮Βͳ͍ w *.properties(SBEMFͷઃఆ w

    gradlewϏϧυ࣮ߦ༻ w 4IFMM4DSJQUͱόονϑΝΠϧ
  38. • app/ w src/ ιʔείʔυ w build.gradle
 BQQϞδϡʔϧͷ(SBEMF੍ޚ w ͨ·ʹ৮Δ

    w androidTest / testςετ༻ w main/ΞϓϦຊମͷιʔείʔυ
  39. • app/main/ w java/ +BWBͷιʔε w ϓϩάϥϜຊମ͸͜͜ w AndroidManifest.xml w

    "OESPJEͷΞϓϦʹ
 ؔ͢Δ৘ใ 9.-  w ΞϓϦ໊ɾΞΠίϯɾ
 ݖݶɾ"DUJWJUZ ޙड़ ʜ
  40. • app/main/ w res/ Ϧιʔε w drawable/ը૾ w layout/ ϨΠΞ΢τ

    w mipmap/ ΞΠίϯ w values/
 จষɾ৭ɾ਺ࣈͳͲͷ஋ w ܗࣜ͸9.-΍όΠφϦ