最終更新:2012-10-15 (月) 02:26:10 (4182d)
android.app.IntentService
Top / android.app.IntentService
public abstract class
内部にワーカースレッドを持ち、「startService()」で渡されたInetntを内部にキューイングし、逐次処理を行うクラス
http://developer.android.com/reference/android/app/IntentService.html
親クラス
- java.lang.Object - android.content.Context - android.content.ContextWrapper - android.app.Service - android.app.IntentService
メモ
- IntentService.onHandleIntent?を用意して、インテントからハンドリングされた際の処理を書くだけで済む
- onStartCommand()はオーバーライドしない
- 受け取ったInetntを内部にキューイングし、逐次処理を行う
- キューから処理がなくなったら自動的にサービスが終了 (IntentService.onDestroy?)
- リクエストはすべて1つのワーカースレッド?で処理される