# JobIntentService

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  
belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1  
Summary:[Inherited Constants](https://developer.android.com/reference/android/support/v4/app/JobIntentService#inhconstants)\|[Ctors](https://developer.android.com/reference/android/support/v4/app/JobIntentService#pubctors)\|[Methods](https://developer.android.com/reference/android/support/v4/app/JobIntentService#pubmethods)\|[Protected Methods](https://developer.android.com/reference/android/support/v4/app/JobIntentService#promethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/v4/app/JobIntentService#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/v4/app/JobIntentService#)  

# JobIntentService

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public


abstract
class
JobIntentService
`  
`


``


``


``

extends `[Service](https://developer.android.com/reference/android/app/Service.html)`


``


`

|---|---|---|---|-----------------------------------------|
| java.lang.Object                                    |||||
| ↳ | [android.content.Context](https://developer.android.com/reference/android/content/Context.html) ||||
|   | ↳ | [android.content.ContextWrapper](https://developer.android.com/reference/android/content/ContextWrapper.html) |||
|   |   | ↳ | [android.app.Service](https://developer.android.com/reference/android/app/Service.html) ||
|   |   |   | ↳ | android.support.v4.app.JobIntentService |

<br />

*** ** * ** ***

Helper for processing work that has been enqueued for a job/service. When running on[Android O](https://developer.android.com/reference/android/os/Build.VERSION_CODES.html#O)or later, the work will be dispatched as a job via[JobScheduler.enqueue](https://developer.android.com/reference/android/app/job/JobScheduler.html#enqueue(android.app.job.JobInfo, android.app.job.JobWorkItem)). When running on older versions of the platform, it will use[Context.startService](https://developer.android.com/reference/android/content/Context.html#startService(android.content.Intent)).

You must publish your subclass in your manifest for the system to interact with. This should be published as a[JobService](https://developer.android.com/reference/android/app/job/JobService.html), as described for that class, since on O and later platforms it will be executed that way.

Use[enqueueWork(Context, Class, int, Intent)](https://developer.android.com/reference/android/support/v4/app/JobIntentService#enqueueWork(android.content.Context, java.lang.Class, int, android.content.Intent))to enqueue new work to be dispatched to and handled by your service. It will be executed in[onHandleWork(Intent)](https://developer.android.com/reference/android/support/v4/app/JobIntentService#onHandleWork(android.content.Intent)).

You do not need to use[WakefulBroadcastReceiver](https://developer.android.com/reference/android/support/v4/content/WakefulBroadcastReceiver)when using this class. When running on[Android O](https://developer.android.com/reference/android/os/Build.VERSION_CODES.html#O), the JobScheduler will take care of wake locks for you (holding a wake lock from the time you enqueue work until the job has been dispatched and while it is running). When running on previous versions of the platform, this wake lock handling is emulated in the class here by directly calling the PowerManager; this means the application must request the[WAKE_LOCK](https://developer.android.com/reference/android/Manifest.permission#WAKE_LOCK)permission.

There are a few important differences in behavior when running on[Android O](https://developer.android.com/reference/android/os/Build.VERSION_CODES.html#O)or later as a Job vs. pre-O:

- When running as a pre-O service, the act of enqueueing work will generally start the service immediately, regardless of whether the device is dozing or in other conditions. When running as a Job, it will be subject to standard JobScheduler policies for a Job with a[setOverrideDeadline(long)](https://developer.android.com/reference/android/app/job/JobInfo.Builder.html#setOverrideDeadline(long))of 0: the job will not run while the device is dozing, it may get delayed more than a service if the device is under strong memory pressure with lots of demand to run jobs.

- When running as a pre-O service, the normal service execution semantics apply: the service can run indefinitely, though the longer it runs the more likely the system will be to outright kill its process, and under memory pressure one should expect the process to be killed even of recently started services. When running as a Job, the typical[JobService](https://developer.android.com/reference/android/app/job/JobService.html)execution time limit will apply, after which the job will be stopped (cleanly, not by killing the process) and rescheduled to continue its execution later. Job are generally not killed when the system is under memory pressure, since the number of concurrent jobs is adjusted based on the memory state of the device.

Here is an example implementation of this class:  

```
import android.content.Context;
import android.content.Intent;
import android.os.Handler;
import android.os.SystemClock;
import android.support.v4.app.JobIntentService;
import android.util.Log;
import android.widget.Toast;

/**
 * Example implementation of a JobIntentService.
 */
public class SimpleJobIntentService extends JobIntentService {
    /**
     * Unique job ID for this service.
     */
    static final int JOB_ID = 1000;

    /**
     * Convenience method for enqueuing work in to this service.
     */
    static void enqueueWork(Context context, Intent work) {
        enqueueWork(context, SimpleJobIntentService.class, JOB_ID, work);
    }

    @Override
    protected void onHandleWork(Intent intent) {
        // We have received work to do.  The system or framework is already
        // holding a wake lock for us at this point, so we can just go.
        Log.i("SimpleJobIntentService", "Executing work: " + intent);
        String label = intent.getStringExtra("label");
        if (label == null) {
            label = intent.toString();
        }
        toast("Executing: " + label);
        for (int i = 0; i < 5; i++) {
            Log.i("SimpleJobIntentService", "Running service " + (i + 1)
                    + "/5 @ " + SystemClock.elapsedRealtime());
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
            }
        }
        Log.i("SimpleJobIntentService", "Completed service @ " + SystemClock.elapsedRealtime());
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        toast("All work complete");
    }

    final Handler mHandler = new Handler();

    // Helper for showing tests
    void toast(final CharSequence text) {
        mHandler.post(new Runnable() {
            @Override public void run() {
                Toast.makeText(SimpleJobIntentService.this, text, Toast.LENGTH_SHORT).show();
            }
        });
    }
}
```

<br />

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              ### Inherited constants                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v4/app/JobIntentService#)From class` android.app.Service ` |-------|-------------------------------------| | `int` | `START_CONTINUATION_MASK` <br />    | | `int` | `START_FLAG_REDELIVERY` <br />      | | `int` | `START_FLAG_RETRY` <br />           | | `int` | `START_NOT_STICKY` <br />           | | `int` | `START_REDELIVER_INTENT` <br />     | | `int` | `START_STICKY` <br />               | | `int` | `START_STICKY_COMPATIBILITY` <br /> | | `int` | `STOP_FOREGROUND_DETACH` <br />     | | `int` | `STOP_FOREGROUND_REMOVE` <br />     |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v4/app/JobIntentService#)From class` android.content.Context ` |----------|-------------------------------------------| | `String` | `ACCESSIBILITY_SERVICE` <br />            | | `String` | `ACCOUNT_SERVICE` <br />                  | | `String` | `ACTIVITY_SERVICE` <br />                 | | `String` | `ALARM_SERVICE` <br />                    | | `String` | `APPWIDGET_SERVICE` <br />                | | `String` | `APP_OPS_SERVICE` <br />                  | | `String` | `AUDIO_SERVICE` <br />                    | | `String` | `BATTERY_SERVICE` <br />                  | | `int`    | `BIND_ABOVE_CLIENT` <br />                | | `int`    | `BIND_ADJUST_WITH_ACTIVITY` <br />        | | `int`    | `BIND_ALLOW_OOM_MANAGEMENT` <br />        | | `int`    | `BIND_AUTO_CREATE` <br />                 | | `int`    | `BIND_DEBUG_UNBIND` <br />                | | `int`    | `BIND_EXTERNAL_SERVICE` <br />            | | `int`    | `BIND_IMPORTANT` <br />                   | | `int`    | `BIND_NOT_FOREGROUND` <br />              | | `int`    | `BIND_WAIVE_PRIORITY` <br />              | | `String` | `BLUETOOTH_SERVICE` <br />                | | `String` | `CAMERA_SERVICE` <br />                   | | `String` | `CAPTIONING_SERVICE` <br />               | | `String` | `CARRIER_CONFIG_SERVICE` <br />           | | `String` | `CLIPBOARD_SERVICE` <br />                | | `String` | `COMPANION_DEVICE_SERVICE` <br />         | | `String` | `CONNECTIVITY_SERVICE` <br />             | | `String` | `CONSUMER_IR_SERVICE` <br />              | | `int`    | `CONTEXT_IGNORE_SECURITY` <br />          | | `int`    | `CONTEXT_INCLUDE_CODE` <br />             | | `int`    | `CONTEXT_RESTRICTED` <br />               | | `String` | `CROSS_PROFILE_APPS_SERVICE` <br />       | | `String` | `DEVICE_POLICY_SERVICE` <br />            | | `String` | `DISPLAY_SERVICE` <br />                  | | `String` | `DOWNLOAD_SERVICE` <br />                 | | `String` | `DROPBOX_SERVICE` <br />                  | | `String` | `FINGERPRINT_SERVICE` <br />              | | `String` | `HARDWARE_PROPERTIES_SERVICE` <br />      | | `String` | `INPUT_METHOD_SERVICE` <br />             | | `String` | `INPUT_SERVICE` <br />                    | | `String` | `IPSEC_SERVICE` <br />                    | | `String` | `JOB_SCHEDULER_SERVICE` <br />            | | `String` | `KEYGUARD_SERVICE` <br />                 | | `String` | `LAUNCHER_APPS_SERVICE` <br />            | | `String` | `LAYOUT_INFLATER_SERVICE` <br />          | | `String` | `LOCATION_SERVICE` <br />                 | | `String` | `MEDIA_PROJECTION_SERVICE` <br />         | | `String` | `MEDIA_ROUTER_SERVICE` <br />             | | `String` | `MEDIA_SESSION_SERVICE` <br />            | | `String` | `MIDI_SERVICE` <br />                     | | `int`    | `MODE_APPEND` <br />                      | | `int`    | `MODE_ENABLE_WRITE_AHEAD_LOGGING` <br />  | | `int`    | `MODE_MULTI_PROCESS` <br />               | | `int`    | `MODE_NO_LOCALIZED_COLLATORS` <br />      | | `int`    | `MODE_PRIVATE` <br />                     | | `int`    | `MODE_WORLD_READABLE` <br />              | | `int`    | `MODE_WORLD_WRITEABLE` <br />             | | `String` | `NETWORK_STATS_SERVICE` <br />            | | `String` | `NFC_SERVICE` <br />                      | | `String` | `NOTIFICATION_SERVICE` <br />             | | `String` | `NSD_SERVICE` <br />                      | | `String` | `POWER_SERVICE` <br />                    | | `String` | `PRINT_SERVICE` <br />                    | | `int`    | `RECEIVER_VISIBLE_TO_INSTANT_APPS` <br /> | | `String` | `RESTRICTIONS_SERVICE` <br />             | | `String` | `SEARCH_SERVICE` <br />                   | | `String` | `SENSOR_SERVICE` <br />                   | | `String` | `SHORTCUT_SERVICE` <br />                 | | `String` | `STORAGE_SERVICE` <br />                  | | `String` | `STORAGE_STATS_SERVICE` <br />            | | `String` | `SYSTEM_HEALTH_SERVICE` <br />            | | `String` | `TELECOM_SERVICE` <br />                  | | `String` | `TELEPHONY_SERVICE` <br />                | | `String` | `TELEPHONY_SUBSCRIPTION_SERVICE` <br />   | | `String` | `TEXT_CLASSIFICATION_SERVICE` <br />      | | `String` | `TEXT_SERVICES_MANAGER_SERVICE` <br />    | | `String` | `TV_INPUT_SERVICE` <br />                 | | `String` | `UI_MODE_SERVICE` <br />                  | | `String` | `USAGE_STATS_SERVICE` <br />              | | `String` | `USB_SERVICE` <br />                      | | `String` | `USER_SERVICE` <br />                     | | `String` | `VIBRATOR_SERVICE` <br />                 | | `String` | `WALLPAPER_SERVICE` <br />                | | `String` | `WIFI_AWARE_SERVICE` <br />               | | `String` | `WIFI_P2P_SERVICE` <br />                 | | `String` | `WIFI_RTT_RANGING_SERVICE` <br />         | | `String` | `WIFI_SERVICE` <br />                     | | `String` | `WINDOW_SERVICE` <br />                   | |
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v4/app/JobIntentService#)From interface` android.content.ComponentCallbacks2 ` |-------|---------------------------------------| | `int` | `TRIM_MEMORY_BACKGROUND` <br />       | | `int` | `TRIM_MEMORY_COMPLETE` <br />         | | `int` | `TRIM_MEMORY_MODERATE` <br />         | | `int` | `TRIM_MEMORY_RUNNING_CRITICAL` <br /> | | `int` | `TRIM_MEMORY_RUNNING_LOW` <br />      | | `int` | `TRIM_MEMORY_RUNNING_MODERATE` <br /> | | `int` | `TRIM_MEMORY_UI_HIDDEN` <br />        |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |

|                                                                   ### Public constructors                                                                    ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[JobIntentService](https://developer.android.com/reference/android/support/v4/app/JobIntentService#JobIntentService())`() ` Default empty constructor. |

|                                                                                                                                                                                                                                                                                                                                                                                                                                        ### Public methods                                                                                                                                                                                                                                                                                                                                                                                                                                         ||
|-------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` static void`                                                                | ` `[enqueueWork](https://developer.android.com/reference/android/support/v4/app/JobIntentService#enqueueWork(android.content.Context, android.content.ComponentName, int, android.content.Intent))`(`[Context](https://developer.android.com/reference/android/content/Context.html)` context, `[ComponentName](https://developer.android.com/reference/android/content/ComponentName.html)` component, int jobId, `[Intent](https://developer.android.com/reference/android/content/Intent.html)` work) ` Like[enqueueWork(Context, Class, int, Intent)](https://developer.android.com/reference/android/support/v4/app/JobIntentService#enqueueWork(android.content.Context, java.lang.Class, int, android.content.Intent)), but supplies a ComponentName for the service to interact with instead of its class. |
| ` static void`                                                                | ` `[enqueueWork](https://developer.android.com/reference/android/support/v4/app/JobIntentService#enqueueWork(android.content.Context, java.lang.Class, int, android.content.Intent))`(`[Context](https://developer.android.com/reference/android/content/Context.html)` context, Class cls, int jobId, `[Intent](https://developer.android.com/reference/android/content/Intent.html)` work) ` Call this to enqueue work for your subclass of[JobIntentService](https://developer.android.com/reference/android/support/v4/app/JobIntentService).                                                                                                                                                                                                                                                                  |
| ` boolean`                                                                    | ` `[isStopped](https://developer.android.com/reference/android/support/v4/app/JobIntentService#isStopped())`() ` Returns true if[onStopCurrentWork()](https://developer.android.com/reference/android/support/v4/app/JobIntentService#onStopCurrentWork())has been called.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| ` `[IBinder](https://developer.android.com/reference/android/os/IBinder.html) | ` `[onBind](https://developer.android.com/reference/android/support/v4/app/JobIntentService#onBind(android.content.Intent))`(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` intent) ` Returns the IBinder for the[JobServiceEngine](https://developer.android.com/reference/android/app/job/JobServiceEngine.html)when running as a JobService on O and later platforms.                                                                                                                                                                                                                                                                                                                                                                                                          |
| ` void`                                                                       | ` `[onCreate](https://developer.android.com/reference/android/support/v4/app/JobIntentService#onCreate())`() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ` void`                                                                       | ` `[onDestroy](https://developer.android.com/reference/android/support/v4/app/JobIntentService#onDestroy())`() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| ` int`                                                                        | ` `[onStartCommand](https://developer.android.com/reference/android/support/v4/app/JobIntentService#onStartCommand(android.content.Intent, int, int))`(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` intent, int flags, int startId) ` Processes start commands when running as a pre-O service, enqueueing them to be later dispatched in[onHandleWork(Intent)](https://developer.android.com/reference/android/support/v4/app/JobIntentService#onHandleWork(android.content.Intent)).                                                                                                                                                                                                                                                                                          |
| ` boolean`                                                                    | ` `[onStopCurrentWork](https://developer.android.com/reference/android/support/v4/app/JobIntentService#onStopCurrentWork())`() ` This will be called if the JobScheduler has decided to stop this job.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ` void`                                                                       | ` `[setInterruptIfStopped](https://developer.android.com/reference/android/support/v4/app/JobIntentService#setInterruptIfStopped(boolean))`(boolean interruptIfStopped) ` Control whether code executing in[onHandleWork(Intent)](https://developer.android.com/reference/android/support/v4/app/JobIntentService#onHandleWork(android.content.Intent))will be interrupted if the job is stopped.                                                                                                                                                                                                                                                                                                                                                                                                                  |

|                                                                                                                                                     ### Protected methods                                                                                                                                                      ||
|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract void` | ` `[onHandleWork](https://developer.android.com/reference/android/support/v4/app/JobIntentService#onHandleWork(android.content.Intent))`(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` intent) ` Called serially for each work dispatched to and processed by the service. |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v4/app/JobIntentService#)From class` `[android.app.Service](https://developer.android.com/reference/android/app/Service.html)` ` |----------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------| | ` void`                                                                                      | ` dump(FileDescriptor arg0, PrintWriter arg1, String[] arg2) `                                                                     | | ` final `[Application](https://developer.android.com/reference/android/app/Application.html) | ` getApplication() `                                                                                                               | | ` abstract `[IBinder](https://developer.android.com/reference/android/os/IBinder.html)       | ` onBind(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                   | | ` void`                                                                                      | ` onConfigurationChanged(`[Configuration](https://developer.android.com/reference/android/content/res/Configuration.html)` arg0) ` | | ` void`                                                                                      | ` onCreate() `                                                                                                                     | | ` void`                                                                                      | ` onDestroy() `                                                                                                                    | | ` void`                                                                                      | ` onLowMemory() `                                                                                                                  | | ` void`                                                                                      | ` onRebind(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                 | | ` void`                                                                                      | ` onStart(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, int arg1) `                        | | ` int`                                                                                       | ` onStartCommand(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, int arg1, int arg2) `       | | ` void`                                                                                      | ` onTaskRemoved(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                            | | ` void`                                                                                      | ` onTrimMemory(int arg0) `                                                                                                         | | ` boolean`                                                                                   | ` onUnbind(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                 | | ` final void`                                                                                | ` startForeground(int arg0, `[Notification](https://developer.android.com/reference/android/app/Notification.html)` arg1) `        | | ` final void`                                                                                | ` stopForeground(int arg0) `                                                                                                       | | ` final void`                                                                                | ` stopForeground(boolean arg0) `                                                                                                   | | ` final void`                                                                                | ` stopSelf() `                                                                                                                     | | ` final void`                                                                                | ` stopSelf(int arg0) `                                                                                                             | | ` final boolean`                                                                             | ` stopSelfResult(int arg0) `                                                                                                       | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v4/app/JobIntentService#)From class` `[android.content.ContextWrapper](https://developer.android.com/reference/android/content/ContextWrapper.html)` ` |----------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` void`                                                                                                  | ` attachBaseContext(`[Context](https://developer.android.com/reference/android/content/Context.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` boolean`                                                                                               | ` bindService(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection.html)` arg1, int arg2) `                                                                                                                                                                                                                                                                                                       | | ` int`                                                                                                   | ` checkCallingOrSelfPermission(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` int`                                                                                                   | ` checkCallingOrSelfUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                                                                                         | | ` int`                                                                                                   | ` checkCallingPermission(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` int`                                                                                                   | ` checkCallingUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                                                                                               | | ` int`                                                                                                   | ` checkPermission(String arg0, int arg1, int arg2) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` int`                                                                                                   | ` checkSelfPermission(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` int`                                                                                                   | ` checkUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, String arg1, String arg2, int arg3, int arg4, int arg5) `                                                                                                                                                                                                                                                                                                                                                                        | | ` int`                                                                                                   | ` checkUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, int arg1, int arg2, int arg3) `                                                                                                                                                                                                                                                                                                                                                                                                  | | ` void`                                                                                                  | ` clearWallpaper() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` `[Context](https://developer.android.com/reference/android/content/Context.html)                       | ` createConfigurationContext(`[Configuration](https://developer.android.com/reference/android/content/res/Configuration.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                            | | ` `[Context](https://developer.android.com/reference/android/content/Context.html)                       | ` createContextForSplit(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` `[Context](https://developer.android.com/reference/android/content/Context.html)                       | ` createDeviceProtectedStorageContext() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` `[Context](https://developer.android.com/reference/android/content/Context.html)                       | ` createDisplayContext(`[Display](https://developer.android.com/reference/android/view/Display.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` `[Context](https://developer.android.com/reference/android/content/Context.html)                       | ` createPackageContext(String arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` String[]`                                                                                              | ` databaseList() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` boolean`                                                                                               | ` deleteDatabase(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` boolean`                                                                                               | ` deleteFile(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` boolean`                                                                                               | ` deleteSharedPreferences(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` void`                                                                                                  | ` enforceCallingOrSelfPermission(String arg0, String arg1) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` void`                                                                                                  | ` enforceCallingOrSelfUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, int arg1, String arg2) `                                                                                                                                                                                                                                                                                                                                                                                          | | ` void`                                                                                                  | ` enforceCallingPermission(String arg0, String arg1) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` void`                                                                                                  | ` enforceCallingUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, int arg1, String arg2) `                                                                                                                                                                                                                                                                                                                                                                                                | | ` void`                                                                                                  | ` enforcePermission(String arg0, int arg1, int arg2, String arg3) `                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` void`                                                                                                  | ` enforceUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, String arg1, String arg2, int arg3, int arg4, int arg5, String arg6) `                                                                                                                                                                                                                                                                                                                                                         | | ` void`                                                                                                  | ` enforceUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, int arg1, int arg2, int arg3, String arg4) `                                                                                                                                                                                                                                                                                                                                                                                   | | ` String[]`                                                                                              | ` fileList() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` `[Context](https://developer.android.com/reference/android/content/Context.html)                       | ` getApplicationContext() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` `[ApplicationInfo](https://developer.android.com/reference/android/content/pm/ApplicationInfo.html)    | ` getApplicationInfo() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` `[AssetManager](https://developer.android.com/reference/android/content/res/AssetManager.html)         | ` getAssets() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` `[Context](https://developer.android.com/reference/android/content/Context.html)                       | ` getBaseContext() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` File`                                                                                                  | ` getCacheDir() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` ClassLoader`                                                                                           | ` getClassLoader() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` File`                                                                                                  | ` getCodeCacheDir() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` `[ContentResolver](https://developer.android.com/reference/android/content/ContentResolver.html)       | ` getContentResolver() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` File`                                                                                                  | ` getDataDir() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` File`                                                                                                  | ` getDatabasePath(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` File`                                                                                                  | ` getDir(String arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` File`                                                                                                  | ` getExternalCacheDir() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` File[]`                                                                                                | ` getExternalCacheDirs() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` File`                                                                                                  | ` getExternalFilesDir(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` File[]`                                                                                                | ` getExternalFilesDirs(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` File[]`                                                                                                | ` getExternalMediaDirs() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` File`                                                                                                  | ` getFileStreamPath(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` File`                                                                                                  | ` getFilesDir() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` Executor`                                                                                              | ` getMainExecutor() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` `[Looper](https://developer.android.com/reference/android/os/Looper.html)                              | ` getMainLooper() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` File`                                                                                                  | ` getNoBackupFilesDir() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` File`                                                                                                  | ` getObbDir() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` File[]`                                                                                                | ` getObbDirs() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` String`                                                                                                | ` getPackageCodePath() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` `[PackageManager](https://developer.android.com/reference/android/content/pm/PackageManager.html)      | ` getPackageManager() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` String`                                                                                                | ` getPackageName() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` String`                                                                                                | ` getPackageResourcePath() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` `[Resources](https://developer.android.com/reference/android/content/res/Resources.html)               | ` getResources() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` `[SharedPreferences](https://developer.android.com/reference/android/content/SharedPreferences.html)   | ` getSharedPreferences(String arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` Object`                                                                                                | ` getSystemService(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` String`                                                                                                | ` getSystemServiceName(Class<?> arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` `[Resources.Theme](https://developer.android.com/reference/android/content/res/Resources.Theme.html)   | ` getTheme() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)           | ` getWallpaper() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` int`                                                                                                   | ` getWallpaperDesiredMinimumHeight() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` int`                                                                                                   | ` getWallpaperDesiredMinimumWidth() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` void`                                                                                                  | ` grantUriPermission(String arg0, `[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg1, int arg2) `                                                                                                                                                                                                                                                                                                                                                                                                         | | ` boolean`                                                                                               | ` isDeviceProtectedStorage() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` boolean`                                                                                               | ` isRestricted() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` boolean`                                                                                               | ` moveDatabaseFrom(`[Context](https://developer.android.com/reference/android/content/Context.html)` arg0, String arg1) `                                                                                                                                                                                                                                                                                                                                                                                                         | | ` boolean`                                                                                               | ` moveSharedPreferencesFrom(`[Context](https://developer.android.com/reference/android/content/Context.html)` arg0, String arg1) `                                                                                                                                                                                                                                                                                                                                                                                                | | ` FileInputStream`                                                                                       | ` openFileInput(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` FileOutputStream`                                                                                      | ` openFileOutput(String arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` `[SQLiteDatabase](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html) | ` openOrCreateDatabase(String arg0, int arg1, `[SQLiteDatabase.CursorFactory](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.CursorFactory.html)` arg2, `[DatabaseErrorHandler](https://developer.android.com/reference/android/database/DatabaseErrorHandler.html)` arg3) `                                                                                                                                                                                                                      | | ` `[SQLiteDatabase](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html) | ` openOrCreateDatabase(String arg0, int arg1, `[SQLiteDatabase.CursorFactory](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.CursorFactory.html)` arg2) `                                                                                                                                                                                                                                                                                                                                         | | ` `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)           | ` peekWallpaper() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` `[Intent](https://developer.android.com/reference/android/content/Intent.html)                         | ` registerReceiver(`[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg0, `[IntentFilter](https://developer.android.com/reference/android/content/IntentFilter.html)` arg1) `                                                                                                                                                                                                                                                                                                | | ` `[Intent](https://developer.android.com/reference/android/content/Intent.html)                         | ` registerReceiver(`[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg0, `[IntentFilter](https://developer.android.com/reference/android/content/IntentFilter.html)` arg1, int arg2) `                                                                                                                                                                                                                                                                                      | | ` `[Intent](https://developer.android.com/reference/android/content/Intent.html)                         | ` registerReceiver(`[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg0, `[IntentFilter](https://developer.android.com/reference/android/content/IntentFilter.html)` arg1, String arg2, `[Handler](https://developer.android.com/reference/android/os/Handler.html)` arg3, int arg4) `                                                                                                                                                                                      | | ` `[Intent](https://developer.android.com/reference/android/content/Intent.html)                         | ` registerReceiver(`[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg0, `[IntentFilter](https://developer.android.com/reference/android/content/IntentFilter.html)` arg1, String arg2, `[Handler](https://developer.android.com/reference/android/os/Handler.html)` arg3) `                                                                                                                                                                                                | | ` void`                                                                                                  | ` removeStickyBroadcast(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` void`                                                                                                  | ` removeStickyBroadcastAsUser(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle.html)` arg1) `                                                                                                                                                                                                                                                                                                                    | | ` void`                                                                                                  | ` revokeUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` void`                                                                                                  | ` revokeUriPermission(String arg0, `[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg1, int arg2) `                                                                                                                                                                                                                                                                                                                                                                                                        | | ` void`                                                                                                  | ` sendBroadcast(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, String arg1) `                                                                                                                                                                                                                                                                                                                                                                                                              | | ` void`                                                                                                  | ` sendBroadcast(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` void`                                                                                                  | ` sendBroadcastAsUser(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle.html)` arg1) `                                                                                                                                                                                                                                                                                                                            | | ` void`                                                                                                  | ` sendBroadcastAsUser(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle.html)` arg1, String arg2) `                                                                                                                                                                                                                                                                                                               | | ` void`                                                                                                  | ` sendOrderedBroadcast(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, String arg1, `[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg2, `[Handler](https://developer.android.com/reference/android/os/Handler.html)` arg3, int arg4, String arg5, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg6) `                                                                                                | | ` void`                                                                                                  | ` sendOrderedBroadcast(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, String arg1) `                                                                                                                                                                                                                                                                                                                                                                                                       | | ` void`                                                                                                  | ` sendOrderedBroadcastAsUser(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle.html)` arg1, String arg2, `[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg3, `[Handler](https://developer.android.com/reference/android/os/Handler.html)` arg4, int arg5, String arg6, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg7) ` | | ` void`                                                                                                  | ` sendStickyBroadcast(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` void`                                                                                                  | ` sendStickyBroadcastAsUser(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle.html)` arg1) `                                                                                                                                                                                                                                                                                                                      | | ` void`                                                                                                  | ` sendStickyOrderedBroadcast(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg1, `[Handler](https://developer.android.com/reference/android/os/Handler.html)` arg2, int arg3, String arg4, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg5) `                                                                                                       | | ` void`                                                                                                  | ` sendStickyOrderedBroadcastAsUser(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle.html)` arg1, `[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg2, `[Handler](https://developer.android.com/reference/android/os/Handler.html)` arg3, int arg4, String arg5, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg6) `        | | ` void`                                                                                                  | ` setTheme(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` void`                                                                                                  | ` setWallpaper(`[Bitmap](https://developer.android.com/reference/android/graphics/Bitmap.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` void`                                                                                                  | ` setWallpaper(InputStream arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` void`                                                                                                  | ` startActivities(`[Intent[]](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg1) `                                                                                                                                                                                                                                                                                                                                      | | ` void`                                                                                                  | ` startActivities(`[Intent[]](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` void`                                                                                                  | ` startActivity(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` void`                                                                                                  | ` startActivity(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg1) `                                                                                                                                                                                                                                                                                                                                          | | ` `[ComponentName](https://developer.android.com/reference/android/content/ComponentName.html)           | ` startForegroundService(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` boolean`                                                                                               | ` startInstrumentation(`[ComponentName](https://developer.android.com/reference/android/content/ComponentName.html)` arg0, String arg1, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg2) `                                                                                                                                                                                                                                                                                                        | | ` void`                                                                                                  | ` startIntentSender(`[IntentSender](https://developer.android.com/reference/android/content/IntentSender.html)` arg0, `[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg1, int arg2, int arg3, int arg4) `                                                                                                                                                                                                                                                                                       | | ` void`                                                                                                  | ` startIntentSender(`[IntentSender](https://developer.android.com/reference/android/content/IntentSender.html)` arg0, `[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg1, int arg2, int arg3, int arg4, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg5) `                                                                                                                                                                                                      | | ` `[ComponentName](https://developer.android.com/reference/android/content/ComponentName.html)           | ` startService(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` boolean`                                                                                               | ` stopService(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` void`                                                                                                  | ` unbindService(`[ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                     | | ` void`                                                                                                  | ` unregisterReceiver(`[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v4/app/JobIntentService#)From class` `[android.content.Context](https://developer.android.com/reference/android/content/Context.html)` ` |-------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract boolean`                                                                                               | ` bindService(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection.html)` arg1, int arg2) `                                                                                                                                                                                                                                                                                                       | | ` abstract int`                                                                                                   | ` checkCallingOrSelfPermission(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` abstract int`                                                                                                   | ` checkCallingOrSelfUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                                                                                         | | ` abstract int`                                                                                                   | ` checkCallingPermission(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` abstract int`                                                                                                   | ` checkCallingUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                                                                                               | | ` abstract int`                                                                                                   | ` checkPermission(String arg0, int arg1, int arg2) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` abstract int`                                                                                                   | ` checkSelfPermission(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` abstract int`                                                                                                   | ` checkUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, String arg1, String arg2, int arg3, int arg4, int arg5) `                                                                                                                                                                                                                                                                                                                                                                        | | ` abstract int`                                                                                                   | ` checkUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, int arg1, int arg2, int arg3) `                                                                                                                                                                                                                                                                                                                                                                                                  | | ` abstract void`                                                                                                  | ` clearWallpaper() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` abstract `[Context](https://developer.android.com/reference/android/content/Context.html)                       | ` createConfigurationContext(`[Configuration](https://developer.android.com/reference/android/content/res/Configuration.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                            | | ` abstract `[Context](https://developer.android.com/reference/android/content/Context.html)                       | ` createContextForSplit(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` abstract `[Context](https://developer.android.com/reference/android/content/Context.html)                       | ` createDeviceProtectedStorageContext() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` abstract `[Context](https://developer.android.com/reference/android/content/Context.html)                       | ` createDisplayContext(`[Display](https://developer.android.com/reference/android/view/Display.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` abstract `[Context](https://developer.android.com/reference/android/content/Context.html)                       | ` createPackageContext(String arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` abstract String[]`                                                                                              | ` databaseList() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` abstract boolean`                                                                                               | ` deleteDatabase(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` abstract boolean`                                                                                               | ` deleteFile(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` abstract boolean`                                                                                               | ` deleteSharedPreferences(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` abstract void`                                                                                                  | ` enforceCallingOrSelfPermission(String arg0, String arg1) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` abstract void`                                                                                                  | ` enforceCallingOrSelfUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, int arg1, String arg2) `                                                                                                                                                                                                                                                                                                                                                                                          | | ` abstract void`                                                                                                  | ` enforceCallingPermission(String arg0, String arg1) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` abstract void`                                                                                                  | ` enforceCallingUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, int arg1, String arg2) `                                                                                                                                                                                                                                                                                                                                                                                                | | ` abstract void`                                                                                                  | ` enforcePermission(String arg0, int arg1, int arg2, String arg3) `                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` abstract void`                                                                                                  | ` enforceUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, String arg1, String arg2, int arg3, int arg4, int arg5, String arg6) `                                                                                                                                                                                                                                                                                                                                                         | | ` abstract void`                                                                                                  | ` enforceUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, int arg1, int arg2, int arg3, String arg4) `                                                                                                                                                                                                                                                                                                                                                                                   | | ` abstract String[]`                                                                                              | ` fileList() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` abstract `[Context](https://developer.android.com/reference/android/content/Context.html)                       | ` getApplicationContext() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` abstract `[ApplicationInfo](https://developer.android.com/reference/android/content/pm/ApplicationInfo.html)    | ` getApplicationInfo() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` abstract `[AssetManager](https://developer.android.com/reference/android/content/res/AssetManager.html)         | ` getAssets() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` abstract File`                                                                                                  | ` getCacheDir() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` abstract ClassLoader`                                                                                           | ` getClassLoader() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` abstract File`                                                                                                  | ` getCodeCacheDir() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` final int`                                                                                                      | ` getColor(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` final `[ColorStateList](https://developer.android.com/reference/android/content/res/ColorStateList.html)        | ` getColorStateList(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` abstract `[ContentResolver](https://developer.android.com/reference/android/content/ContentResolver.html)       | ` getContentResolver() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` abstract File`                                                                                                  | ` getDataDir() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` abstract File`                                                                                                  | ` getDatabasePath(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` abstract File`                                                                                                  | ` getDir(String arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` final `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)              | ` getDrawable(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` abstract File`                                                                                                  | ` getExternalCacheDir() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` abstract File[]`                                                                                                | ` getExternalCacheDirs() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` abstract File`                                                                                                  | ` getExternalFilesDir(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` abstract File[]`                                                                                                | ` getExternalFilesDirs(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` abstract File[]`                                                                                                | ` getExternalMediaDirs() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | | ` abstract File`                                                                                                  | ` getFileStreamPath(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` abstract File`                                                                                                  | ` getFilesDir() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` Executor`                                                                                                       | ` getMainExecutor() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` abstract `[Looper](https://developer.android.com/reference/android/os/Looper.html)                              | ` getMainLooper() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` abstract File`                                                                                                  | ` getNoBackupFilesDir() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` abstract File`                                                                                                  | ` getObbDir() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` abstract File[]`                                                                                                | ` getObbDirs() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` abstract String`                                                                                                | ` getPackageCodePath() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | | ` abstract `[PackageManager](https://developer.android.com/reference/android/content/pm/PackageManager.html)      | ` getPackageManager() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` abstract String`                                                                                                | ` getPackageName() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | | ` abstract String`                                                                                                | ` getPackageResourcePath() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | | ` abstract `[Resources](https://developer.android.com/reference/android/content/res/Resources.html)               | ` getResources() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` abstract `[SharedPreferences](https://developer.android.com/reference/android/content/SharedPreferences.html)   | ` getSharedPreferences(String arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` final String`                                                                                                   | ` getString(int arg0, Object... arg1) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` final String`                                                                                                   | ` getString(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` final <T> T`                                                                                                    | ` getSystemService(Class<T> arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` abstract Object`                                                                                                | ` getSystemService(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | | ` abstract String`                                                                                                | ` getSystemServiceName(Class<?> arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` final CharSequence`                                                                                             | ` getText(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` abstract `[Resources.Theme](https://developer.android.com/reference/android/content/res/Resources.Theme.html)   | ` getTheme() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` abstract `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)           | ` getWallpaper() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` abstract int`                                                                                                   | ` getWallpaperDesiredMinimumHeight() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` abstract int`                                                                                                   | ` getWallpaperDesiredMinimumWidth() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` abstract void`                                                                                                  | ` grantUriPermission(String arg0, `[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg1, int arg2) `                                                                                                                                                                                                                                                                                                                                                                                                         | | ` abstract boolean`                                                                                               | ` isDeviceProtectedStorage() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` boolean`                                                                                                        | ` isRestricted() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` abstract boolean`                                                                                               | ` moveDatabaseFrom(`[Context](https://developer.android.com/reference/android/content/Context.html)` arg0, String arg1) `                                                                                                                                                                                                                                                                                                                                                                                                         | | ` abstract boolean`                                                                                               | ` moveSharedPreferencesFrom(`[Context](https://developer.android.com/reference/android/content/Context.html)` arg0, String arg1) `                                                                                                                                                                                                                                                                                                                                                                                                | | ` final `[TypedArray](https://developer.android.com/reference/android/content/res/TypedArray.html)                | ` obtainStyledAttributes(`[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` arg0, int[] arg1) `                                                                                                                                                                                                                                                                                                                                                                                             | | ` final `[TypedArray](https://developer.android.com/reference/android/content/res/TypedArray.html)                | ` obtainStyledAttributes(`[AttributeSet](https://developer.android.com/reference/android/util/AttributeSet.html)` arg0, int[] arg1, int arg2, int arg3) `                                                                                                                                                                                                                                                                                                                                                                         | | ` final `[TypedArray](https://developer.android.com/reference/android/content/res/TypedArray.html)                | ` obtainStyledAttributes(int arg0, int[] arg1) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` final `[TypedArray](https://developer.android.com/reference/android/content/res/TypedArray.html)                | ` obtainStyledAttributes(int[] arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` abstract FileInputStream`                                                                                       | ` openFileInput(String arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | | ` abstract FileOutputStream`                                                                                      | ` openFileOutput(String arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | | ` abstract `[SQLiteDatabase](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html) | ` openOrCreateDatabase(String arg0, int arg1, `[SQLiteDatabase.CursorFactory](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.CursorFactory.html)` arg2, `[DatabaseErrorHandler](https://developer.android.com/reference/android/database/DatabaseErrorHandler.html)` arg3) `                                                                                                                                                                                                                      | | ` abstract `[SQLiteDatabase](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html) | ` openOrCreateDatabase(String arg0, int arg1, `[SQLiteDatabase.CursorFactory](https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.CursorFactory.html)` arg2) `                                                                                                                                                                                                                                                                                                                                         | | ` abstract `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)           | ` peekWallpaper() `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | ` void`                                                                                                           | ` registerComponentCallbacks(`[ComponentCallbacks](https://developer.android.com/reference/android/content/ComponentCallbacks.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                      | | ` abstract `[Intent](https://developer.android.com/reference/android/content/Intent.html)                         | ` registerReceiver(`[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg0, `[IntentFilter](https://developer.android.com/reference/android/content/IntentFilter.html)` arg1) `                                                                                                                                                                                                                                                                                                | | ` abstract `[Intent](https://developer.android.com/reference/android/content/Intent.html)                         | ` registerReceiver(`[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg0, `[IntentFilter](https://developer.android.com/reference/android/content/IntentFilter.html)` arg1, int arg2) `                                                                                                                                                                                                                                                                                      | | ` abstract `[Intent](https://developer.android.com/reference/android/content/Intent.html)                         | ` registerReceiver(`[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg0, `[IntentFilter](https://developer.android.com/reference/android/content/IntentFilter.html)` arg1, String arg2, `[Handler](https://developer.android.com/reference/android/os/Handler.html)` arg3, int arg4) `                                                                                                                                                                                      | | ` abstract `[Intent](https://developer.android.com/reference/android/content/Intent.html)                         | ` registerReceiver(`[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg0, `[IntentFilter](https://developer.android.com/reference/android/content/IntentFilter.html)` arg1, String arg2, `[Handler](https://developer.android.com/reference/android/os/Handler.html)` arg3) `                                                                                                                                                                                                | | ` abstract void`                                                                                                  | ` removeStickyBroadcast(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                   | | ` abstract void`                                                                                                  | ` removeStickyBroadcastAsUser(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle.html)` arg1) `                                                                                                                                                                                                                                                                                                                    | | ` abstract void`                                                                                                  | ` revokeUriPermission(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg0, int arg1) `                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` abstract void`                                                                                                  | ` revokeUriPermission(String arg0, `[Uri](https://developer.android.com/reference/android/net/Uri.html)` arg1, int arg2) `                                                                                                                                                                                                                                                                                                                                                                                                        | | ` abstract void`                                                                                                  | ` sendBroadcast(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, String arg1) `                                                                                                                                                                                                                                                                                                                                                                                                              | | ` abstract void`                                                                                                  | ` sendBroadcast(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` abstract void`                                                                                                  | ` sendBroadcastAsUser(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle.html)` arg1) `                                                                                                                                                                                                                                                                                                                            | | ` abstract void`                                                                                                  | ` sendBroadcastAsUser(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle.html)` arg1, String arg2) `                                                                                                                                                                                                                                                                                                               | | ` abstract void`                                                                                                  | ` sendOrderedBroadcast(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, String arg1, `[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg2, `[Handler](https://developer.android.com/reference/android/os/Handler.html)` arg3, int arg4, String arg5, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg6) `                                                                                                | | ` abstract void`                                                                                                  | ` sendOrderedBroadcast(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, String arg1) `                                                                                                                                                                                                                                                                                                                                                                                                       | | ` abstract void`                                                                                                  | ` sendOrderedBroadcastAsUser(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle.html)` arg1, String arg2, `[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg3, `[Handler](https://developer.android.com/reference/android/os/Handler.html)` arg4, int arg5, String arg6, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg7) ` | | ` abstract void`                                                                                                  | ` sendStickyBroadcast(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                     | | ` abstract void`                                                                                                  | ` sendStickyBroadcastAsUser(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle.html)` arg1) `                                                                                                                                                                                                                                                                                                                      | | ` abstract void`                                                                                                  | ` sendStickyOrderedBroadcast(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg1, `[Handler](https://developer.android.com/reference/android/os/Handler.html)` arg2, int arg3, String arg4, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg5) `                                                                                                       | | ` abstract void`                                                                                                  | ` sendStickyOrderedBroadcastAsUser(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[UserHandle](https://developer.android.com/reference/android/os/UserHandle.html)` arg1, `[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg2, `[Handler](https://developer.android.com/reference/android/os/Handler.html)` arg3, int arg4, String arg5, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg6) `        | | ` abstract void`                                                                                                  | ` setTheme(int arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` abstract void`                                                                                                  | ` setWallpaper(`[Bitmap](https://developer.android.com/reference/android/graphics/Bitmap.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` abstract void`                                                                                                  | ` setWallpaper(InputStream arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | ` abstract void`                                                                                                  | ` startActivities(`[Intent[]](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg1) `                                                                                                                                                                                                                                                                                                                                      | | ` abstract void`                                                                                                  | ` startActivities(`[Intent[]](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                       | | ` abstract void`                                                                                                  | ` startActivity(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                           | | ` abstract void`                                                                                                  | ` startActivity(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg1) `                                                                                                                                                                                                                                                                                                                                          | | ` abstract `[ComponentName](https://developer.android.com/reference/android/content/ComponentName.html)           | ` startForegroundService(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                  | | ` abstract boolean`                                                                                               | ` startInstrumentation(`[ComponentName](https://developer.android.com/reference/android/content/ComponentName.html)` arg0, String arg1, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg2) `                                                                                                                                                                                                                                                                                                        | | ` abstract void`                                                                                                  | ` startIntentSender(`[IntentSender](https://developer.android.com/reference/android/content/IntentSender.html)` arg0, `[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg1, int arg2, int arg3, int arg4) `                                                                                                                                                                                                                                                                                       | | ` abstract void`                                                                                                  | ` startIntentSender(`[IntentSender](https://developer.android.com/reference/android/content/IntentSender.html)` arg0, `[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg1, int arg2, int arg3, int arg4, `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)` arg5) `                                                                                                                                                                                                      | | ` abstract `[ComponentName](https://developer.android.com/reference/android/content/ComponentName.html)           | ` startService(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                            | | ` abstract boolean`                                                                                               | ` stopService(`[Intent](https://developer.android.com/reference/android/content/Intent.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                                             | | ` abstract void`                                                                                                  | ` unbindService(`[ServiceConnection](https://developer.android.com/reference/android/content/ServiceConnection.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                     | | ` void`                                                                                                           | ` unregisterComponentCallbacks(`[ComponentCallbacks](https://developer.android.com/reference/android/content/ComponentCallbacks.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                    | | ` abstract void`                                                                                                  | ` unregisterReceiver(`[BroadcastReceiver](https://developer.android.com/reference/android/content/BroadcastReceiver.html)` arg0) `                                                                                                                                                                                                                                                                                                                                                                                                | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v4/app/JobIntentService#)From class` java.lang.Object ` |-------------------|-------------------------------| | ` Object`         | ` clone() `                   | | ` boolean`        | ` equals(Object arg0) `       | | ` void`           | ` finalize() `                | | ` final Class<?>` | ` getClass() `                | | ` int`            | ` hashCode() `                | | ` final void`     | ` notify() `                  | | ` final void`     | ` notifyAll() `               | | ` String`         | ` toString() `                | | ` final void`     | ` wait(long arg0, int arg1) ` | | ` final void`     | ` wait(long arg0) `           | | ` final void`     | ` wait() `                    | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v4/app/JobIntentService#)From interface` `[android.content.ComponentCallbacks2](https://developer.android.com/reference/android/content/ComponentCallbacks2.html)` ` |------------------|----------------------------| | ` abstract void` | ` onTrimMemory(int arg0) ` | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/v4/app/JobIntentService#)From interface` `[android.content.ComponentCallbacks](https://developer.android.com/reference/android/content/ComponentCallbacks.html)` ` |------------------|------------------------------------------------------------------------------------------------------------------------------------| | ` abstract void` | ` onConfigurationChanged(`[Configuration](https://developer.android.com/reference/android/content/res/Configuration.html)` arg0) ` | | ` abstract void` | ` onLowMemory() `                                                                                                                  | ||

## Public constructors

### JobIntentService

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
JobIntentService ()
```

Default empty constructor.

<br />

## Public methods

### enqueueWork

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void enqueueWork (Context context, 
                ComponentName component, 
                int jobId, 
                Intent work)
```

Like[enqueueWork(Context, Class, int, Intent)](https://developer.android.com/reference/android/support/v4/app/JobIntentService#enqueueWork(android.content.Context, java.lang.Class, int, android.content.Intent)), but supplies a ComponentName for the service to interact with instead of its class.

<br />

|                                                         Parameters                                                          ||
|-------------|----------------------------------------------------------------------------------------------------------------|
| `context`   | `Context`: Context this is being called from. <br />                                                           |
| `component` | `ComponentName`: The published ComponentName of the class this work should be dispatched to. <br />            |
| `jobId`     | `int`: A unique job ID for scheduling; must be the same value for all work enqueued for the same class. <br /> |
| `work`      | `Intent`: The Intent of work to enqueue. <br />                                                                |

### enqueueWork

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void enqueueWork (Context context, 
                Class cls, 
                int jobId, 
                Intent work)
```

Call this to enqueue work for your subclass of[JobIntentService](https://developer.android.com/reference/android/support/v4/app/JobIntentService). This will either directly start the service (when running on pre-O platforms) or enqueue work for it as a job (when running on O and later). In either case, a wake lock will be held for you to ensure you continue running. The work you enqueue will ultimately appear at[onHandleWork(Intent)](https://developer.android.com/reference/android/support/v4/app/JobIntentService#onHandleWork(android.content.Intent)).

<br />

|                                                               Parameters                                                               ||
|-----------|-----------------------------------------------------------------------------------------------------------------------------|
| `context` | `Context`: Context this is being called from. <br />                                                                        |
| `cls`     | `Class`: The concrete class the work should be dispatched to (this is the class that is published in your manifest). <br /> |
| `jobId`   | `int`: A unique job ID for scheduling; must be the same value for all work enqueued for the same class. <br />              |
| `work`    | `Intent`: The Intent of work to enqueue. <br />                                                                             |

### isStopped

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean isStopped ()
```

Returns true if[onStopCurrentWork()](https://developer.android.com/reference/android/support/v4/app/JobIntentService#onStopCurrentWork())has been called. You can use this, while executing your work, to see if it should be stopped.

<br />

|      Returns      ||
|-----------|--------|
| `boolean` | <br /> |

### onBind

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
IBinder onBind (Intent intent)
```

Returns the IBinder for the[JobServiceEngine](https://developer.android.com/reference/android/app/job/JobServiceEngine.html)when running as a JobService on O and later platforms.

<br />

|        Parameters         ||
|----------|-----------------|
| `intent` | `Intent` <br /> |

|                                      Returns                                       ||
|----------------------------------------------------------------------------|--------|
| [IBinder](https://developer.android.com/reference/android/os/IBinder.html) | <br /> |

### onCreate

```
void onCreate ()
```

<br />

<br />

### onDestroy

```
void onDestroy ()
```

<br />

<br />

### onStartCommand

```
int onStartCommand (Intent intent, 
                int flags, 
                int startId)
```

Processes start commands when running as a pre-O service, enqueueing them to be later dispatched in[onHandleWork(Intent)](https://developer.android.com/reference/android/support/v4/app/JobIntentService#onHandleWork(android.content.Intent)).

<br />

|         Parameters         ||
|-----------|-----------------|
| `intent`  | `Intent` <br /> |
| `flags`   | `int` <br />    |
| `startId` | `int` <br />    |

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### onStopCurrentWork

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
boolean onStopCurrentWork ()
```

This will be called if the JobScheduler has decided to stop this job. The job for this service does not have any constraints specified, so this will only generally happen if the service exceeds the job's maximum execution time.

<br />

|                                                                                                                                                                                    Returns                                                                                                                                                                                     ||
|-----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `boolean` | True to indicate to the JobManager whether you'd like to reschedule this work, false to drop this and all following work. Regardless of the value returned, your service must stop executing or the system will ultimately kill it. The default implementation returns true, and that is most likely what you want to return as well (so no work gets lost). <br /> |

### setInterruptIfStopped

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void setInterruptIfStopped (boolean interruptIfStopped)
```

Control whether code executing in[onHandleWork(Intent)](https://developer.android.com/reference/android/support/v4/app/JobIntentService#onHandleWork(android.content.Intent))will be interrupted if the job is stopped. By default this is false. If called and set to true, any time[onStopCurrentWork()](https://developer.android.com/reference/android/support/v4/app/JobIntentService#onStopCurrentWork())is called, the class will first call[AsyncTask.cancel(true)](https://developer.android.com/reference/android/os/AsyncTask.html#cancel(boolean))to interrupt the running task.

<br />

|                                                 Parameters                                                  ||
|----------------------|---------------------------------------------------------------------------------------|
| `interruptIfStopped` | `boolean`: Set to true to allow the system to interrupt actively running work. <br /> |

## Protected methods

### onHandleWork

added in[version 26.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

```
void onHandleWork (Intent intent)
```

Called serially for each work dispatched to and processed by the service. This method is called on a background thread, so you can do long blocking operations here. Upon returning, that work will be considered complete and either the next pending work dispatched here or the overall service destroyed now that it has nothing else to do.

Be aware that when running as a job, you are limited by the maximum job execution time and any single or total sequential items of work that exceeds that limit will cause the service to be stopped while in progress and later restarted with the last unfinished work. (There is currently no limit on execution duration when running as a pre-O plain Service.)

<br />

<br />

|                                   Parameters                                   ||
|----------|----------------------------------------------------------------------|
| `intent` | `Intent`: The intent describing the work to now be processed. <br /> |

-

  ## Annotations

  - [NotificationCompat.Action.SemanticAction](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.SemanticAction)
-

  ## Interfaces

  - [ActionBarDrawerToggle.Delegate](https://developer.android.com/reference/android/support/v4/app/ActionBarDrawerToggle.Delegate)
  - [ActionBarDrawerToggle.DelegateProvider](https://developer.android.com/reference/android/support/v4/app/ActionBarDrawerToggle.DelegateProvider)
  - [ActivityCompat.OnRequestPermissionsResultCallback](https://developer.android.com/reference/android/support/v4/app/ActivityCompat.OnRequestPermissionsResultCallback)
  - [ActivityCompat.PermissionCompatDelegate](https://developer.android.com/reference/android/support/v4/app/ActivityCompat.PermissionCompatDelegate)
  - [FragmentManager.BackStackEntry](https://developer.android.com/reference/android/support/v4/app/FragmentManager.BackStackEntry)
  - [FragmentManager.OnBackStackChangedListener](https://developer.android.com/reference/android/support/v4/app/FragmentManager.OnBackStackChangedListener)
  - [LoaderManager.LoaderCallbacks](https://developer.android.com/reference/android/support/v4/app/LoaderManager.LoaderCallbacks)
  - [NotificationCompat.Action.Extender](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.Extender)
  - [NotificationCompat.Extender](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Extender)
  - [SharedElementCallback.OnSharedElementsReadyListener](https://developer.android.com/reference/android/support/v4/app/SharedElementCallback.OnSharedElementsReadyListener)
  - [TaskStackBuilder.SupportParentable](https://developer.android.com/reference/android/support/v4/app/TaskStackBuilder.SupportParentable)
-

  ## Classes

  - [ActionBarDrawerToggle](https://developer.android.com/reference/android/support/v4/app/ActionBarDrawerToggle)
  - [ActivityCompat](https://developer.android.com/reference/android/support/v4/app/ActivityCompat)
  - [ActivityManagerCompat](https://developer.android.com/reference/android/support/v4/app/ActivityManagerCompat)
  - [ActivityOptionsCompat](https://developer.android.com/reference/android/support/v4/app/ActivityOptionsCompat)
  - [AlarmManagerCompat](https://developer.android.com/reference/android/support/v4/app/AlarmManagerCompat)
  - [AppLaunchChecker](https://developer.android.com/reference/android/support/v4/app/AppLaunchChecker)
  - [AppOpsManagerCompat](https://developer.android.com/reference/android/support/v4/app/AppOpsManagerCompat)
  - [BundleCompat](https://developer.android.com/reference/android/support/v4/app/BundleCompat)
  - [DialogFragment](https://developer.android.com/reference/android/support/v4/app/DialogFragment)
  - [Fragment](https://developer.android.com/reference/android/support/v4/app/Fragment)
  - [Fragment.SavedState](https://developer.android.com/reference/android/support/v4/app/Fragment.SavedState)
  - [FragmentActivity](https://developer.android.com/reference/android/support/v4/app/FragmentActivity)
  - [FragmentContainer](https://developer.android.com/reference/android/support/v4/app/FragmentContainer)
  - [FragmentController](https://developer.android.com/reference/android/support/v4/app/FragmentController)
  - [FragmentHostCallback](https://developer.android.com/reference/android/support/v4/app/FragmentHostCallback)
  - [FragmentManager](https://developer.android.com/reference/android/support/v4/app/FragmentManager)
  - [FragmentManager.FragmentLifecycleCallbacks](https://developer.android.com/reference/android/support/v4/app/FragmentManager.FragmentLifecycleCallbacks)
  - [FragmentManagerNonConfig](https://developer.android.com/reference/android/support/v4/app/FragmentManagerNonConfig)
  - [FragmentPagerAdapter](https://developer.android.com/reference/android/support/v4/app/FragmentPagerAdapter)
  - [FragmentStatePagerAdapter](https://developer.android.com/reference/android/support/v4/app/FragmentStatePagerAdapter)
  - [FragmentTabHost](https://developer.android.com/reference/android/support/v4/app/FragmentTabHost)
  - [FragmentTransaction](https://developer.android.com/reference/android/support/v4/app/FragmentTransaction)
  - [FrameMetricsAggregator](https://developer.android.com/reference/android/support/v4/app/FrameMetricsAggregator)
  - [JobIntentService](https://developer.android.com/reference/android/support/v4/app/JobIntentService)
  - [ListFragment](https://developer.android.com/reference/android/support/v4/app/ListFragment)
  - [LoaderManager](https://developer.android.com/reference/android/support/v4/app/LoaderManager)
  - [NavUtils](https://developer.android.com/reference/android/support/v4/app/NavUtils)
  - [NotificationCompat](https://developer.android.com/reference/android/support/v4/app/NotificationCompat)
  - [NotificationCompat.Action](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action)
  - [NotificationCompat.Action.Builder](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.Builder)
  - [NotificationCompat.Action.WearableExtender](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Action.WearableExtender)
  - [NotificationCompat.BigPictureStyle](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.BigPictureStyle)
  - [NotificationCompat.BigTextStyle](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.BigTextStyle)
  - [NotificationCompat.Builder](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Builder)
  - [NotificationCompat.CarExtender](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.CarExtender)
  - [NotificationCompat.CarExtender.UnreadConversation](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.CarExtender.UnreadConversation)
  - [NotificationCompat.CarExtender.UnreadConversation.Builder](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.CarExtender.UnreadConversation.Builder)
  - [NotificationCompat.DecoratedCustomViewStyle](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.DecoratedCustomViewStyle)
  - [NotificationCompat.InboxStyle](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.InboxStyle)
  - [NotificationCompat.MessagingStyle](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.MessagingStyle)
  - [NotificationCompat.MessagingStyle.Message](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.MessagingStyle.Message)
  - [NotificationCompat.Style](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Style)
  - [NotificationCompat.WearableExtender](https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender)
  - [NotificationCompatExtras](https://developer.android.com/reference/android/support/v4/app/NotificationCompatExtras)
  - [NotificationCompatSideChannelService](https://developer.android.com/reference/android/support/v4/app/NotificationCompatSideChannelService)
  - [NotificationManagerCompat](https://developer.android.com/reference/android/support/v4/app/NotificationManagerCompat)
  - [RemoteInput](https://developer.android.com/reference/android/support/v4/app/RemoteInput)
  - [RemoteInput.Builder](https://developer.android.com/reference/android/support/v4/app/RemoteInput.Builder)
  - [ServiceCompat](https://developer.android.com/reference/android/support/v4/app/ServiceCompat)
  - [ShareCompat](https://developer.android.com/reference/android/support/v4/app/ShareCompat)
  - [ShareCompat.IntentBuilder](https://developer.android.com/reference/android/support/v4/app/ShareCompat.IntentBuilder)
  - [ShareCompat.IntentReader](https://developer.android.com/reference/android/support/v4/app/ShareCompat.IntentReader)
  - [SharedElementCallback](https://developer.android.com/reference/android/support/v4/app/SharedElementCallback)
  - [TaskStackBuilder](https://developer.android.com/reference/android/support/v4/app/TaskStackBuilder)
-

  ## Exceptions

  - [Fragment.InstantiationException](https://developer.android.com/reference/android/support/v4/app/Fragment.InstantiationException)