最終更新:2016-09-29 (木) 18:07:26 (2762d)
android.app.Service
Top / android.app.Service
http://developer.android.com/reference/android/app/Service.html
親クラス
サブクラス
- android.inputmethodservice.AbstractInputMethodService
- android.accessibilityservice.AccessibilityService
- android.app.IntentService
- android.speech.RecognitionService
- android.widget.RemoteViewsService?
- android.service.textservice.SpellCheckerService?
- android.speech.tts.TextToSpeechService?
- android.net.VpnService?
- android.service.wallpaper.WallpaperService?
メソッド
- Service.onCreate
- Service.onStartCommand - Context.startService()から呼び出される
- Service.onBind - Context.bindService()から呼び出される
- Service.onDestroy
定数
START_CONTINUATION_MASK? Bits returned by onStartCommand(Intent, int, int) describing how to continue the service if it is killed. START_FLAG_REDELIVERY? This flag is set in onStartCommand(Intent, int, int) if the Intent is a re-delivery of a previously delivered intent, because the service had previously returned START_REDELIVER_INTENT but had been killed before calling stopSelf(int) for that Intent. START_FLAG_RETRY? This flag is set in onStartCommand(Intent, int, int) if the Intent is a retry because the original attempt never got to or returned from onStartCommand(Intent, int, int). START_NOT_STICKY Constant to return from onStartCommand(Intent, int, int): if this service's process is killed while it is started (after returning from onStartCommand(Intent, int, int)), and there are no new start intents to deliver to it, then take the service out of the started state and don't recreate until a future explicit call to Context.startService(Intent). START_REDELIVER_INTENT? Constant to return from onStartCommand(Intent, int, int): if this service's process is killed while it is started (after returning from onStartCommand(Intent, int, int)), then it will be scheduled for a restart and the last delivered Intent re-delivered to it again via onStartCommand(Intent, int, int). START_STICKY Constant to return from onStartCommand(Intent, int, int): if this service's process is killed while it is started (after returning from onStartCommand(Intent, int, int)), then leave it in the started state but don't retain this delivered intent. START_STICKY_COMPATIBILITY Constant to return from onStartCommand(Intent, int, int): compatibility version of START_STICKY that does not guarantee that onStartCommand(Intent, int, int) will be called again after being killed. STOP_FOREGROUND_DETACH? (deprecated)Flag for stopForeground(int): if set, the notification previously provided to startForeground(int, Notification) will be detached from the service. STOP_FOREGROUND_REMOVE? (deprecated)Flag for stopForeground(int): if set, the notification previously provided to startForeground(int, Notification) will be removed.