184 Android AsyncTask Example |

preview_player
Показать описание
"Learn How To Design + Code A Complete App From Scratch To Playstore"
-~-~~-~~~-~~-~-

This Android Tutorial shows an example of AsyncTask where a ListView is populated with items in the background thread supported by the doInBackground method. The onPreExecute and onPostExecute take care of displaying and hiding a progress bar that belongs to the Activity enabled through the requestWindowFeature method. The publishProgress and onProgressUpdate attempt to update the progressbar

OUR WEBSITE

OUR SOCIAL LINKS
Follow us on
Рекомендации по теме
Комментарии
Автор

I am still watching the basic tutorial (about 80th video) and you are great! You make everything easily understandable. Thanks

Simone
Автор

You're a fucking legend, man. You explain in details, then like that wasn't enough you even review the content in the end. Fucking legend. Perfect.

adriano.santana
Автор

151K subs dude your channel is so underrated. you are one of the best tutor in Youtube.

castro
Автор

Thank you friend, because of you my code finally works. I needed to understand async to realize android app - webserver communication. Good job! 5 stars

madskillzo
Автор

Thanks slidenerd I ended up watching 16-21 I saw the answer. There's a lot of moving parts. I.ll watch it a couple times so i understand it. Great job keep the great content coming. Can't wait for app login / logout basics playlist

drjones
Автор

Thank you for making me understand what actually async task is.

iobizz
Автор

Hi! Sorry, but I have an error here
      
         
       
error -> requestFeature() must be called before adding content
Could you help me?

andriizhydenko
Автор

Your videos are awesome! very concise!

DavidMcEleney
Автор

awesome way to explain progress bar. Thanks!

MayankSolan
Автор

Played around with this but couldn't get the progressbar to show.. BTW for people getting the following crash:

       Error: requestFeature() must be called before adding content

you are probably using the support library so instead of requestWindowFeature() you need to use That will remove the crash, however the progressbar still won't show up for me.. I even tried using all the support methods instead like:

      *setSupportProgress()* instead of setProgress()

      instead of setProgressBarIndeterminate()

      instead of setProgressBarVisibility()

but it still didn't show up.. I suspect something about the titlebar is blocking it.. Vivz uses the support library in this video and he didnt do all that and it worked for him so something must have changed since last June.. I don't know but if anyone figures this out please respond.. alternatively you could just use your own progressbar so its not that big a deal but it would be nice to get this working..

sammicurr
Автор

Buddy, thanks, I finally understood AsyncTask !

estebanbriceno
Автор

Excellent tutorial...thank you very much for creating one.

sameerk
Автор

Hi slidenerd 
Is it possible to make a class for POST requests that will get as params Strings, so I would be able to call the same class from different activities? so the difference will be only in the URI and the Body string?

GilB
Автор

Your videos are great. Thanks very much!

tashad
Автор

First, Thanks for your great vids.
Why do you extends ActionBarActivity and not Activity?

alelmcity
Автор

greate tutorial as always man, i have one question though? how can i get data from the onPostExecute method to a variable in an other separate class, like main activity? my my main activity is separate from the class that perfoms the async tasks. thank you in advance

buhlebenkosizimela
Автор

Can we write the code in separate method and then call the code in doininbackground()?
Do we have to write anything extra or just calling the method will work?

educatingmoney
Автор

Window.FEATURE_PROGRESS has been deprecated since API 21. What to use instead for progressbar while activity is loading?

shadabshamsi
Автор

great videos. where can I find your video on the L.class (logging)

omd
Автор

Our website. Which website ? It's gone.

kuteslekkeropzeg