Async Task: Solution to Too Much Load On UI Thread/ Skip frames in Android App

Поділитися
Вставка
  • Опубліковано 20 вер 2024
  • Android AsyncTask is an abstract class which performs heavy tasks in the background and keep the UI thread light thus making the application more responsive and App does not crash or get slow!
    Android application runs on a single thread(UI thread/ Main Thread) when launched. Due to this single thread model tasks that take longer time to fetch the response can make the application non-responsive. To avoid this we use android AsyncTask to perform the heavy tasks in background on a dedicated thread and passing the results back to the UI thread.
    ***Source Code
    safiyaakhtar.i...
    Subscribe and Like My Video and to get regular update, enable Notifications.
    Facebook Page: / safiyaakhtar0infy
    Twitter: / akhtar_safiya
    Blog: safiyaakhtar.in/

КОМЕНТАРІ • 9