Merge "docs: Noted that JobIntentService is usually a better choice" into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
d71cc3b72e
@@ -43,6 +43,13 @@ import android.os.Message;
|
|||||||
* long as necessary (and will not block the application's main loop), but
|
* long as necessary (and will not block the application's main loop), but
|
||||||
* only one request will be processed at a time.
|
* only one request will be processed at a time.
|
||||||
*
|
*
|
||||||
|
* <p class="note"><b>Note:</b> IntentService is subject to all the
|
||||||
|
* <a href="/preview/features/background.html">background execution limits</a>
|
||||||
|
* imposed with Android 8.0 (API level 26). In most cases, you are better off
|
||||||
|
* using {@link android.support.v4.app.JobIntentService}, which uses jobs
|
||||||
|
* instead of services when running on Android 8.0 or higher.
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
* <div class="special reference">
|
* <div class="special reference">
|
||||||
* <h3>Developer Guides</h3>
|
* <h3>Developer Guides</h3>
|
||||||
* <p>For a detailed discussion about how to create services, read the
|
* <p>For a detailed discussion about how to create services, read the
|
||||||
@@ -50,6 +57,7 @@ import android.os.Message;
|
|||||||
* guide.</p>
|
* guide.</p>
|
||||||
* </div>
|
* </div>
|
||||||
*
|
*
|
||||||
|
* @see android.support.v4.app.JobIntentService
|
||||||
* @see android.os.AsyncTask
|
* @see android.os.AsyncTask
|
||||||
*/
|
*/
|
||||||
public abstract class IntentService extends Service {
|
public abstract class IntentService extends Service {
|
||||||
|
|||||||
Reference in New Issue
Block a user