SlideShare ist ein Scribd-Unternehmen logo
1 von 9
Downloaden Sie, um offline zu lesen
Service
• KitchenTimerService

• http://bit.ly/6mAZ6g

•
• Service
• Service
• Service
• Service
  – Service   BroadcastReceiver
  – Service   i/f
Service
•
    –           Service   Intent
    – startService        Intent
    –                        IntentFilter
    – registerReceiver  IntentFilter
      BroadcastReceiver
BroadcastReceiver
• Service

• onReceive   bind


• Service        sendBroadcast
Service                   (bind)

• bindService  Intent ServiceConnection
  Context.BIND AUTO CREATE

•
    ServiceConnection#onServiceConnected


• Service        onBind            callback
Service                 (unbind)

• unbindService    ServiceConnection

•
    ServiceConnection#onServiceDisconnected


• Service         onUnbind          callback
Serviceconnection#onServiceConnecte

•                IBinder
    Service   onBind

• IBinder                           Service
              getter
              Service      public
Service

• unbindService

• unregisterReceiver
  BroadcastReceiver


• Service              stopSelf

Weitere ähnliche Inhalte

Mehr von YAMANE Toshiaki (20)

読書会開催提案
読書会開催提案読書会開催提案
読書会開催提案
 
Lambda ECS Worker Pattern
Lambda ECS Worker PatternLambda ECS Worker Pattern
Lambda ECS Worker Pattern
 
Okinawa makers
Okinawa makersOkinawa makers
Okinawa makers
 
Geek な Recipe の共有
Geek な Recipe の共有Geek な Recipe の共有
Geek な Recipe の共有
 
Git Workshop 20130720
Git Workshop 20130720Git Workshop 20130720
Git Workshop 20130720
 
Designers hack
Designers hackDesigners hack
Designers hack
 
底辺部な勉強会へのお誘い
底辺部な勉強会へのお誘い底辺部な勉強会へのお誘い
底辺部な勉強会へのお誘い
 
2012.10.27 のアンカンファレンスのスライド
2012.10.27 のアンカンファレンスのスライド2012.10.27 のアンカンファレンスのスライド
2012.10.27 のアンカンファレンスのスライド
 
Coderetreat
CoderetreatCoderetreat
Coderetreat
 
Make androidproject.2
Make androidproject.2Make androidproject.2
Make androidproject.2
 
Hello world
Hello worldHello world
Hello world
 
Android Fundamentals
Android FundamentalsAndroid Fundamentals
Android Fundamentals
 
ojag20120519
ojag20120519ojag20120519
ojag20120519
 
20120512
2012051220120512
20120512
 
X hago3
X hago3X hago3
X hago3
 
20110205.jsonengine
20110205.jsonengine20110205.jsonengine
20110205.jsonengine
 
20110205.apple1emu
20110205.apple1emu20110205.apple1emu
20110205.apple1emu
 
20110205.linux 0.01
20110205.linux 0.0120110205.linux 0.01
20110205.linux 0.01
 
Introduction ofintent
Introduction ofintentIntroduction ofintent
Introduction ofintent
 
Async processing
Async processingAsync processing
Async processing
 

Service