SlideShare a Scribd company logo
1 of 10
Download to read offline
Handler
• http://bit.ly/a6Ld6

• http://bit.ly/ase9be
AsyncTask

• http://goo.gl/yhhk
IntentService
• http://goo.gl/vP8av
Service

•                 import

• http://db.tt/izBDGlP
Service
• android.app.Service
• callback
  – onCreate

  – onStart
      startService
startService
(1)

• AIDL

• AIDL               interface

• java         gen
(2)
•
    –                .Stub
    –          override (    )
    – onBind      Stub
(3)
•                java     interface
• ServiceConnection
  – onServiceConnected          interface


• startService          bindService
• Broadcast Intent

•            Activity
     Broadcast Intent   Toast

More Related Content

Viewers also liked (6)

ITForum
ITForumITForum
ITForum
 
20100508
2010050820100508
20100508
 
A B C2009 Fall
A B C2009 FallA B C2009 Fall
A B C2009 Fall
 
Preferences
PreferencesPreferences
Preferences
 
20110205.linux 0.01
20110205.linux 0.0120110205.linux 0.01
20110205.linux 0.01
 
Device
DeviceDevice
Device
 

More from 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.apple1emu
20110205.apple1emu20110205.apple1emu
20110205.apple1emu
 
20110205.conference
20110205.conference20110205.conference
20110205.conference
 
Introduction ofintent
Introduction ofintentIntroduction ofintent
Introduction ofintent
 
Dialog
DialogDialog
Dialog
 
20101106
2010110620101106
20101106
 

Async processing