Android Application Development Tutorial - 101 - Async Task class to load stuff

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Thanks for posting this AsyncTask tutorial. I didn't realize why my android app kept lagging and crashing. After I moved most of the work that was originally in the onCreate() function to an AsyncTask function, everything works fine

amizan
Автор

I can't explain to you how much this video (101) has helped me. Thank you for providing so much of your time to these videos.

EldonElledge
Автор

I did skip ahead past this mini project and continued the series, but I dont know if ill ever figure out why Eclipse doesnt like Async, but Ill never become a pro programmer anyways, just like learning the basics of any programming lang for fun. So thanks for trying to help @SharpNazgulGaming !

NathanChambers
Автор

Some classes may have virtual methods, meaning the core of those methods aren't defined. You must defined them in derived class when you extend it.
Implement is made for interface which is a set of undefined methods. So basically its not a class by itself

barberousse
Автор

A couple dozen videos back i thought he told us that the difference between extends and implements is the fact that when you implement you HAVE to override some methods, while extending means you CAN override some methods. So why does the class loadSomeStuff get an error if we extend AsyncTask<String, Integer, String> because we need to override unimplemented methods?

VoltageG
Автор

Seems to me like our new thread returns a string of data which we promptly discard. Where do we use the return value?

BeauKpad
Автор

I do understand, however, this ISNT a built-in class according to Eclipse, I just get the red line, with NO suggestions when I hover over it. Also, I think it might have to do with the fact im running the x64 version as @override is an error on x64 version but an error WITHOUT in the x86 version :/

NathanChambers
Автор

When I hit the load button first the emulator froze... any reason why?
And in order to display what is in the edittext box i have to enter something in it the save.. other it wont work;

tashfrja
Автор

ok ive been following along from the start and we never made a Async class, how can we extend what we havnt made but it works for u :/ I thought maybe u changed ur file name between videos but nope that wasnt it, now im stuck until helped :(

NathanChambers
Автор

ur file was empty an therefore created a empty byte array and tried adding something into it during the while loop .. error mate :)

faizhalde
Автор

I guess I just watched the most part of videos of this series.

Qbee
Автор

"Hey man, I'm doing everything! You know, start your own thread if you wanna do some extra crap" =P

MrValles
Автор

Thanks but You did a small mistake. You did not use the FileName through the doInBackground parameter ;)

carlitobrigante
Автор

Asynctask is going my head in!!!! ARGHHH Force closes whenever my server is off instead of showing the toast I created.

FeelsDonkMan
Автор

the bLoad looks like "blood"☺

maxterminatorx