Android Application Development Tutorial - 102 - The 4 AsyncTask Methods

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

P.s I think you guys are spanking lynda.com and every other tut resource, android has been out for years now and still u guys are really the only ones making relevant tuts. I think you guys should keep this edge . This is chuck Kelly from fb by the way . Idk if i mentioned that already

FFWDEntertainment
Автор

your right, i was tring to write same thing, Thanks :)

burakkocakeu
Автор

Holy Cow man, I thought my computer crashed! :P
Great video, works wonderfully though :)

DarthCaniac
Автор

I could not get the thing to work even though every bit of code was the same as Travis', but it finally started working after I deleted the empty onPreExecute and onProgressUpdated methods.

thetollski
Автор

This is all fine and dandy, but is there a way to read multiple strings using this set-up, or do I have use this set-up once for each string. Just for context, I need to save seven strings whenever their respective editTexts are changed, and I need to load them into their proper slots whenever the app starts up.

jacobhess
Автор

In the doInBackground method, collected is returned in the finally clause but then null is returned afterwards... wouldn't this mean that null is always returned by the method? Yet it works here... what am I missing?

brendanm
Автор

if you load while edit text is empty, it won't work again!!, but with text on edit text at first run does the trick, why??

Rassy_
Автор

@SARTHAK KHANDEKAR I think you need to add valio84's fix from the comments below. Saving the empty field might also be causing that infinite loop he mentions. I've added the fix and have no problems when pressing either save or load immediately without having entered any values.

greedobob
Автор

@brendanm88 A method can return only one thing per execution. Say under normal circumstances it would return "collected" and the method will just stop there. It wont reach the line "return null"

herp_derpingson
Автор

plus the last word you say is 'Void'.... Scary stuff :P

aungkyawthinn
Автор

The "load" button only works like 50% of the time i press it.

Fizzzo
Автор

nothing works when i click save or load ??!!!!

abdelrahman
Автор

wasnt it intentional that the blackout came **immediately** after the words "protected void"? subtle humor.

GaryHemitt
Автор

did you figure it out im having the same problem

DjWuh
Автор

I was looking at the "void", and the VOID appeared, and looked at me!

RRaziel
Автор

I had to think about my life for those 2 seconds. Seemed so long.

yelgabs
Автор

delete this part of the code.. actually it doesn't do anything.. it works for me
protected void onPreExecute(String f){
//example of setting up
f = "whatever";

}

clinttagabucba
Автор

Less tuts about XML and wagging more on all the technical/useful backend stuff like this .there is a market for short/simple tuts that act as a bridge to bring normal guys w.o dev experience into the programming world bc 99% percent of ur peers that know this stuff 1. Think there hot shit and teaching other ppl is annoying /below them and 2. Even when a programmer does want to tea h through tuts, they almost always suck at explaining it in understandable English. Most programmers are

FFWDEntertainment
Автор

If you enter nothing in the edit text and save it the app stops saving and loading the future data.Can you explain why doesn't it store an empty string and replace it with the new string we type after that..Instead the app stops saving and loading

sarthakkhandekar