Slide 1

Slide 1 text

2VJDL4FUUJOHT5JMF "1*

Slide 2

Slide 2 text

ࣗݾ঺հ ๺ଜྋ גࣜձࣾ͸ͯͳ )BUFOBGVOOFMCJU 5XJUUFS!FYQFSPQFSP

Slide 3

Slide 3 text

2VJDL4FUUJOHT5JMF"1*

Slide 4

Slide 4 text

2VJDL4FUUJOHT5JMF"1* w ͔Β"1*͕ެ։͞Εͨ w BOESPJETFSWJDFRVJDLTFUUJOHT5JMF w BOESPJETFSWJDFRVJDLTFUUJOHT5JMF4FSWJDF

Slide 5

Slide 5 text

5JMF

Slide 6

Slide 6 text

5JMF w TFU*DPO *DPO TFU-BCFM $IBS4FRVFODF TFU$POUFOU%FTDSJQUJPO JOU TFU4UBUF JOU w VQEBUF5JMF w 5JMFͷঢ়ଶΛ൓өͤ͞Δʢද͕ࣔมΘΔʣ

Slide 7

Slide 7 text

5JMF public class QuickSettingsService
 extends TileService {
 … Tile tile = this.getQsTile();
 … tile.setIcon(…); tile.setTitle(…); tile.updateTile(); }

Slide 8

Slide 8 text

5JMF4FSWJDF

Slide 9

Slide 9 text

5JMF4FSWJDF public class QSService extends TileService {
 @Override
 public void onTileAdded() {
 super.onTileAdded();
 }
 
 @Override
 public void onTileRemoved() {
 super.onTileRemoved();
 }
 
 @Override
 public void onClick() {
 super.onClick();
 }
 
 @Override
 public void onStartListening() {
 super.onStartListening();
 }
 
 @Override
 public void onStopListening() {
 super.onStopListening();
 }
 } w 4FSWJDFͷࢠΫϥε w ܧঝͯ͠࢖͏

Slide 10

Slide 10 text

5JMF4FSWJDF w PO5JMF"EEFE w 5JMF͕௥Ճ͞ΕͨΒݺ͹ΕΔ w PO5JMF3FNPWFE w 5JMF͕࡟আ͞ΕͨΒݺ͹ΕΔ w PO$MJDL w 5JMF͕ΫϦοΫͨ͠Βݺ͹ΕΔ

Slide 11

Slide 11 text

5JMF4FSWJDF w PO4UBSU-JTUFOJOH w Ϧεχϯάঢ়ଶʹೖͬͨΒݺ͹ΕΔ w PO4UPQ-JTUFOJOH w Ϧεχϯάঢ়ଶͰແ͘ͳͬͨΒݺ͹ΕΔ

Slide 12

Slide 12 text

"OESPJE.BOJGFTU

Slide 13

Slide 13 text

"OESPJE.BOJGFTU 
 
 
 


Slide 14

Slide 14 text

"OESPJE.BOJGFTU 
 
 
 


Slide 15

Slide 15 text

5JMF4FSWJDF TUBSU"DUJWJUZ"OE$PMMBQTF TIPX%JBMPH VOMPDL"OE3VO

Slide 16

Slide 16 text

TUBSU"DUJWJUZ"OE$PMMBQTF w "DUJWJUZىಈ͠2VJDL4FUUJOHTΛͨͨΜͰ͘ΕΔ w ϩοΫதͩͱͨͨΊͳ͍ʢ"DUJWJUZىಈ͸͢Δʣ public class QSIntentService
 extends TileService … Intent intent = new Intent(getApplicationContext(),
 ResultActivity.class);
 startActivityAndCollapse(intent); …
 }

Slide 17

Slide 17 text

TIPX%JBMPH w 2VJDL4FUUJOHTΛดͯ͡%JBMPHΛग़͢ w ϩοΫதͩͱͨͨΊͳ͍ʢ%JBMPHىಈ͸͢Δʣ public class QSDialogService
 extends TileService { … DialogFragment dialog = DialogFragment.create(); showDialog(dialog); …
 }

Slide 18

Slide 18 text

VOMPDL"OE3VO w ʮΞϯϩοΫͨ͠Βಈ͘ʯॲཧ͕͔͚Δ public class QSService extends TileService {
 …
 @Override
 public void onClick() {
 unlockAndRun(new Runnable() {
 @Override
 public void run() {
 Log.e("ಈ͘Α", "΄͓͓͓͓͓͓͓");
 }
 });
 }
 …
 }

Slide 19

Slide 19 text

·ͱΊ w ໾ཱͯΕΔ͔Ͳ͏͔͸ϓϩμΫτʹΑΔ w ʮϩοΫத΋ԡͤΔʯͱ͍͏ͷ͕ϙΠϯτ w Ϣʔβʹ͓͍ͯ΋Β͏ಋઢΛͲ͏͢Δ͔ʁ

Slide 20

Slide 20 text

ࢀߟ w IUUQTDPEFMBCTEFWFMPQFSTHPPHMFDPN DPEFMBCTBOESPJEORVJDLTFUUJOHT JOEFYIUNM JOEFY''JP

Slide 21

Slide 21 text

͋Γ͕ͱ͏͍͟͝·ͨ͠