About 113,000 results
Open links in new tab
  1. android - AysncTask vs ExecutorService? - Stack Overflow

    Jul 18, 2018 · The main difference is, AsyncTask is a class with single threaded Executor (by default), which allows you to perform background operation and posts the results on UI thread. It acts as a …

  2. AsyncTask | API reference | Android Developers

    This class was deprecated in API level 30. Use the standard java.util.concurrent or Kotlin concurrency utilities instead. AsyncTask was intended to enable proper and easy use of the UI thread. However, …

  3. ExecutorService (Java Platform SE 8 ) - Oracle Help Center

    The following method shuts down an ExecutorService in two phases, first by calling shutdown to reject incoming tasks, and then calling shutdownNow, if necessary, to cancel any lingering tasks:

  4. ExecutorService | API reference | Android Developers

    An Executor that provides methods to manage termination and methods that can produce a Future for tracking progress of one or more asynchronous tasks. An ExecutorService can be shut down, which …

  5. AsyncTask V2 — Doing asynchronous work in Android / Java

    Oct 2, 2024 · AsyncTask V2 — Doing asynchronous work in Android / Java with Executor Service AsyncTask is deprecated! Here’s an easy-to-use simple alternative abstraction. I learnt Android …

  6. Asynchronous work with Java threads - Android Developers

    Feb 26, 2026 · This document explains how to use Java background threads and thread pools in Android to handle long-running operations asynchronously and communicate results back to the …

  7. 幸せな非同期処理ライフを満喫するための基礎から応用まで - Qiita

    Nov 16, 2016 · Executor は渡された Runnable を実行するためのインタフェースで、実装によって実行の仕方が変わります(非同期でなく同じスレッドで直接渡された Runnable の run() を呼び出す実 …

  8. Android AsyncTask Example Tutorial - DigitalOcean

    Aug 3, 2022 · Today we will look into Android AsyncTask. We will develop an Android example application that performs an abstract AsyncTask in background. Android AsyncTask Android …

  9. Java スレッドによる非同期処理 | Background work | Android Developers

    このドキュメントでは、Android で Java のバックグラウンド スレッドとスレッド プールを使用して、長時間実行されるオペレーションを非同期で処理し、結果をメインスレッドに返して UI の応答性 …

  10. Handler vs AsyncTask vs Thread in Android: Key Differences ... - LinkedIn

    Apr 22, 2025 · Android has a number of threading and background work technologies, including Threads, AsyncTask, and Handlers. Their distinctions, applications, and best practices are described …