Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Service

636 views

Published on

  • Be the first to like this

Service

  1. 1. Service
  2. 2. • KitchenTimerService • http://bit.ly/6mAZ6g •
  3. 3. • Service • Service • Service • Service – Service BroadcastReceiver – Service i/f
  4. 4. Service • – Service Intent – startService Intent – IntentFilter – registerReceiver IntentFilter BroadcastReceiver
  5. 5. BroadcastReceiver • Service • onReceive bind • Service sendBroadcast
  6. 6. Service (bind) • bindService Intent ServiceConnection Context.BIND AUTO CREATE • ServiceConnection#onServiceConnected • Service onBind callback
  7. 7. Service (unbind) • unbindService ServiceConnection • ServiceConnection#onServiceDisconnected • Service onUnbind callback
  8. 8. Serviceconnection#onServiceConnecte • IBinder Service onBind • IBinder Service getter Service public
  9. 9. Service • unbindService • unregisterReceiver BroadcastReceiver • Service stopSelf

×