Java Alternative To Deprecated Android AsyncTask - AsyncTask Deprecated Alternative

preview_player
Показать описание
Google is deprecating Android's AsyncTask API in Android 11. There are different alternatives to the Android AsyncTask now that it's been announced that it is going to be deprecated. In this lesson, we are going to use CompletableFutures to run a task in the background in the background and update the UI when it's done.

TimeStamps 🕰 :
00:00 Intro To Dependencies
01:24 Sample App UI
02:40 Run Sample App
03:10 View Sample App Code
05:33 Use Simulate-Delay Method
06:55 Use Completable Futures

Connect With Lemubit Academy And Lemuel Ogbunude 🔍:
Рекомендации по теме
Комментарии
Автор

and simple progress bar to show progress, and cancel it when required..

rudreshsp
Автор

Very good explanation~ How do you write the syntax 'var' in java code ? Doesn't it belong to kotlin Hmmm

nnbrs
Автор

how to give progress bar, etc etc using this solution,

rudreshsp
Автор

what are this support min aPi 19 21 ? and support new apis?

rogerccaqp
Автор

how can we do exact as on preExecute, doinBackground, onpost execute.... plz give me an example of this kind...

rudreshsp
Автор

What theme are you using along with the icon pack? @LembuitAcademy

Kevalkorat
Автор

Hi. how to do Http request? can use completableFuture?

safnad_animation
Автор

Will it work for Kotlin Too?? Please Help

aritrachatterjee
join shbcf.ru