public abstract class Service extends ContextWrapper implements ComponentCallbacks2
| Modifier and Type | Field and Description |
|---|---|
static int |
START_CONTINUATION_MASK |
static int |
START_FLAG_REDELIVERY |
static int |
START_FLAG_RETRY |
static int |
START_NOT_STICKY |
static int |
START_REDELIVER_INTENT |
static int |
START_STICKY |
static int |
START_STICKY_COMPATIBILITY |
ACCESSIBILITY_SERVICE, ACCOUNT_SERVICE, ACTIVITY_SERVICE, ALARM_SERVICE, AUDIO_SERVICE, BIND_ABOVE_CLIENT, BIND_ADJUST_WITH_ACTIVITY, BIND_ALLOW_OOM_MANAGEMENT, BIND_AUTO_CREATE, BIND_DEBUG_UNBIND, BIND_IMPORTANT, BIND_NOT_FOREGROUND, BIND_WAIVE_PRIORITY, CLIPBOARD_SERVICE, CONNECTIVITY_SERVICE, CONTEXT_IGNORE_SECURITY, CONTEXT_INCLUDE_CODE, CONTEXT_RESTRICTED, DEVICE_POLICY_SERVICE, DOWNLOAD_SERVICE, DROPBOX_SERVICE, INPUT_METHOD_SERVICE, INPUT_SERVICE, KEYGUARD_SERVICE, LAYOUT_INFLATER_SERVICE, LOCATION_SERVICE, MEDIA_ROUTER_SERVICE, MODE_APPEND, MODE_ENABLE_WRITE_AHEAD_LOGGING, MODE_MULTI_PROCESS, MODE_PRIVATE, MODE_WORLD_READABLE, MODE_WORLD_WRITEABLE, NFC_SERVICE, NOTIFICATION_SERVICE, NSD_SERVICE, POWER_SERVICE, SEARCH_SERVICE, SENSOR_SERVICE, STORAGE_SERVICE, TELEPHONY_SERVICE, TEXT_SERVICES_MANAGER_SERVICE, UI_MODE_SERVICE, USB_SERVICE, VIBRATOR_SERVICE, WALLPAPER_SERVICE, WIFI_P2P_SERVICE, WIFI_SERVICE, WINDOW_SERVICETRIM_MEMORY_BACKGROUND, TRIM_MEMORY_COMPLETE, TRIM_MEMORY_MODERATE, TRIM_MEMORY_RUNNING_CRITICAL, TRIM_MEMORY_RUNNING_LOW, TRIM_MEMORY_RUNNING_MODERATE, TRIM_MEMORY_UI_HIDDEN| Constructor and Description |
|---|
Service() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
dump(FileDescriptor fd,
PrintWriter writer,
String[] args) |
Application |
getApplication() |
abstract IBinder |
onBind(Intent intent) |
void |
onConfigurationChanged(Configuration newConfig) |
void |
onCreate() |
void |
onDestroy() |
void |
onLowMemory() |
void |
onRebind(Intent intent) |
void |
onStart(Intent intent,
int startId)
Deprecated.
|
int |
onStartCommand(Intent intent,
int flags,
int startId) |
void |
onTaskRemoved(Intent rootIntent) |
void |
onTrimMemory(int level) |
boolean |
onUnbind(Intent intent) |
void |
startForeground(int id,
Notification notification) |
void |
stopForeground(boolean removeNotification) |
void |
stopSelf() |
void |
stopSelf(int startId) |
boolean |
stopSelfResult(int startId) |
attachBaseContext, bindService, checkCallingOrSelfPermission, checkCallingOrSelfUriPermission, checkCallingPermission, checkCallingUriPermission, checkPermission, checkUriPermission, checkUriPermission, clearWallpaper, createPackageContext, databaseList, deleteDatabase, deleteFile, enforceCallingOrSelfPermission, enforceCallingOrSelfUriPermission, enforceCallingPermission, enforceCallingUriPermission, enforcePermission, enforceUriPermission, enforceUriPermission, fileList, getApplicationContext, getApplicationInfo, getAssets, getBaseContext, getCacheDir, getClassLoader, getContentResolver, getDatabasePath, getDir, getExternalCacheDir, getExternalFilesDir, getFilesDir, getFileStreamPath, getMainLooper, getObbDir, getPackageCodePath, getPackageManager, getPackageName, getPackageResourcePath, getResources, getSharedPreferences, getSystemService, getTheme, getWallpaper, getWallpaperDesiredMinimumHeight, getWallpaperDesiredMinimumWidth, grantUriPermission, isRestricted, openFileInput, openFileOutput, openOrCreateDatabase, openOrCreateDatabase, peekWallpaper, registerReceiver, registerReceiver, removeStickyBroadcast, revokeUriPermission, sendBroadcast, sendBroadcast, sendOrderedBroadcast, sendOrderedBroadcast, sendStickyBroadcast, sendStickyOrderedBroadcast, setTheme, setWallpaper, setWallpaper, startActivities, startActivities, startActivity, startActivity, startInstrumentation, startIntentSender, startIntentSender, startService, stopService, unbindService, unregisterReceivergetString, getString, getText, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, registerComponentCallbacks, unregisterComponentCallbackspublic static final int START_CONTINUATION_MASK
public static final int START_STICKY_COMPATIBILITY
public static final int START_STICKY
public static final int START_NOT_STICKY
public static final int START_REDELIVER_INTENT
public static final int START_FLAG_REDELIVERY
public static final int START_FLAG_RETRY
public final Application getApplication()
public void onCreate()
@Deprecated public void onStart(Intent intent, int startId)
public int onStartCommand(Intent intent, int flags, int startId)
public void onDestroy()
public void onConfigurationChanged(Configuration newConfig)
onConfigurationChanged in interface ComponentCallbackspublic void onLowMemory()
onLowMemory in interface ComponentCallbackspublic void onTrimMemory(int level)
onTrimMemory in interface ComponentCallbacks2public boolean onUnbind(Intent intent)
public void onRebind(Intent intent)
public void onTaskRemoved(Intent rootIntent)
public final void stopSelf()
public final void stopSelf(int startId)
public final boolean stopSelfResult(int startId)
public final void startForeground(int id,
Notification notification)
public final void stopForeground(boolean removeNotification)
protected void dump(FileDescriptor fd, PrintWriter writer, String[] args)
Copyright © 2008-2013. All Rights Reserved.