Slide 1

Slide 1 text

/FBSCZ$POOFDUJPOT "1* JEGVOOFMCJU ๺ଜɹྋ

Slide 2

Slide 2 text

͜Μʹͪ͸ w JEGVOOFMCJU w ๺ଜɹྋ w BOESPJE

Slide 3

Slide 3 text

ۙ͘ͷ ଞσόΠεͱͷ௨৴

Slide 4

Slide 4 text

ߟ͑ΒΕΔखஈ w CMVFUPPUIͰݕࡧɾ௨৴ w 23ίʔυͰσʔλΛ౉͢ w "OESPJE#FBNͰ௨৴ w Ґஔ৘ใͰ͓ޓ͍Λೝࣝͯ͠Կ͔Ͱ௨৴

Slide 5

Slide 5 text

໘౗ w ͱʹ͔͘ίετ͕͔͔Δ w ͋·ΓγʔϜϨεͰͳ͍ w ෳ਺ਓ͕૬खͩͬͨΒߋʹ໘౗ w ৗ࣌઀ଓ͢Δ৔߹͸ʁ

Slide 6

Slide 6 text

/FBSCZ

Slide 7

Slide 7 text

/FBSCZ w ۙ͘ʹ͍ΔσόΠεͱ઀ଓͯ͠΍ΓͱΓͰ͖Δ w /FBSCZ.FTTBHFT w /FBSCZ$POOFDUJPOT

Slide 8

Slide 8 text

w XJp CMVFUPPUI ਓؒʹฉ͑͜ͳ͍ԻͰ௨৴ w (PPHMF1MBZ4FSWJDFT ༧ఆ w J04Ͱ΋࢖͑Δ ༧ఆ w Ұ෦ͷΞϓϦ͸ઌߦ࠾༻ /FBSCZ.FTTBHFT

Slide 9

Slide 9 text

/FBSCZ$POOFDUJPOT w ϩʔΧϧωοτϫʔΫܦ༝Ͱ઀ଓ w ϚϧνϓϨΠήʔϜͳͲʹ࢖͑Δ w ͢Ͱʹར༻Մೳ w ࠓ೔࿩͢ͷ͸ͪ͜ΒͰ͢

Slide 10

Slide 10 text

/FBSCZ$POOFDUJPOT"1* w (PPHMF1MBZ4FSWJDFT ͔Βར༻Մೳ w (PPHMF"QJ$MJFOUΛར༻ w ඞཁͳQFSNJTTJPO͸ A"$$&44@/&5803,@45"5&AͷΈ w ϩʔΧϧωοτϫʔΫ΁ͷ઀ଓඞਢ

Slide 11

Slide 11 text

Nearby.Connections.startAdvertising Nearby.Connections.startDiscovery Nearby.Connections.sendConnectionRequest Nearby.Connections.acceptConnectionRequest Nearby.Connections.rejectConnectionRequest Nearby.Connections.sendReliableMessage Nearby.Connections.sendUnreliableMessage … /FBSCZ$POOFDUJPOT"1*

Slide 12

Slide 12 text

w (PPHMF"QJ$MJFOU#VJMEFSʹ౉͢ఆ਺ mGoogleApiClient = new GoogleApiClient.Builder(this)
 .addConnectionCallbacks(this)
 .addOnConnectionFailedListener(this)
 .addApi(Nearby.CONNECTIONS_API)
 .build(); /FBSCZ$POOFDUJPOT@"1*

Slide 13

Slide 13 text

w ଞͷσόΠε͔ΒݕࡧՄೳͳঢ়ଶʹ͢Δ Nearby.Connections.startAdvertising(mGoogleApiClient, name, appMetadata, TIMEOUT_ADVERTISE,
 this).setResultCallback(new ResultCallback() {
 @Override
 public void onResult(Connections.StartAdvertisingResult result) { // ͳʹ͔ } }); TUBSU"EWFSUJTJOH

Slide 14

Slide 14 text

w ଞͷσόΠεͷ୳ࡧΛ։࢝͢Δ Nearby.Connections.startDiscovery(mGoogleApiClient, serviceId, TIMEOUT_DISCOVER, this)
 .setResultCallback(new ResultCallback() {
 @Override
 public void onResult(Status status) {
 // ͳʹ͔
 }
 }); TUBSU%JTDPWFSZ

Slide 15

Slide 15 text

w ଞσόΠεʹ઀ଓϦΫΤετΛૹΔ Nearby.Connections.sendConnectionRequest(mGoogleApiClient , myName, endpointId, myPayload,
 new Connections.ConnectionResponseCallback() {
 @Override
 public void onConnectionResponse(String endpointId, Status status, byte[] bytes) {
 mOtherEndpointId = endpointId;
 }
 }, this); TFOE$POOFDUJPO3FRVFTU

Slide 16

Slide 16 text

w ઀ଓϦΫΤετΛڐՄ͠ɺ઀ଓঢ়ଶʹ͢Δ Nearby.Connections.acceptConnectionRequest(mGoogleApiClient , endpointId,
 payload, MainActivity.this)
 .setResultCallback(new ResultCallback() {
 @Override
 public void onResult(Status status) {
 // ͳʹ͔
 }
 }); BDDFQU$POOFDUJPO3FRVFTU

Slide 17

Slide 17 text

w ઀ଓϦΫΤετΛڋ൱ Nearby.Connections.rejectConnectionRequest(mGoogleApiClient , endpointId); SFKFDU$POOFDUJPO3FRVFTU

Slide 18

Slide 18 text

w ϝοηʔδΛૹΔ CZUF w ࣮֬ʹ౉͍ͨ͠ϝοηʔδ͕͋Δͱ͖ʹ࢖͏ w ҉߸Խ͸͞Εͳ͍ͷͰ஫ҙ Nearby.Connections.sendReliableMessage(mGoogleApiClient, mOtherEndpointId, msg.getBytes()); TFOE3FMJBCMF.FTTBHF

Slide 19

Slide 19 text

w ෳ਺ͷѼઌʹૹΔ͜ͱ΋Ͱ͖Δ List mOtherEndpointIds; … Nearby.Connections.sendReliableMessage(mGoogleApiClient, mOtherEndpointIds, msg.getBytes()); TFOE3FMJBCMF.FTTBHF

Slide 20

Slide 20 text

Nearby.Connections.sendUnreliableMessage(mGoogleApiClient , mOtherEndpointId, msg.getBytes()); w TFOE3FMJBCMF.FTTBHFΑΓߴ଎ w ૹ৴ՄೳαΠζ͕TFOE3FMJBCMF.FTTBHFΑΓ খ͍͞ w ॏཁͰͳ͍৘ใΛසൟʹૹΔ৔߹ʹ࢖༻ TFOE6OSFMJBCMF.FTTBHF

Slide 21

Slide 21 text

·ͱΊ w ৭ΜͳσόΠεͱ௿ίετͰܨ͛Δࣄ͕Մೳ w ໘ന͍ w (PPHMF1MBZ4FSWJDFT͑͞ೖΕΕ͹࢖͑Δ

Slide 22

Slide 22 text

ৄࡉ w /FBSCZ$POOFDUJPOT"1* w IUUQTEFWFMPQFSTHPPHMFDPNOFBSCZ DPOOFDUJPOTPWFSWJFX

Slide 23

Slide 23 text

͋Γ͕ͱ͏͍͟͝·ͨ͠