Hi there,
I am having the same problem as the one described here:
http://stackoverflow.com/questions/4080808/asynctask-doinbackground-does-not-run
Just checking if this has been sorted out or I should change my
doInBackground code to the example that that guy has written there?
Thanks!
Ryan
--
Well, the code in that SO question is fairly weak. It won't handle
configuration changes, for example.
AsyncTask uses a thread pool, so if you request too many tasks, some
tasks will queue up waiting for threads to release, which would cause
the described symptoms. For current versions of
30.09.2011 18:15, Mark Murphy пишет:
unless you supply your own
ThreadPoolExecutor (that part is new to Android 2.3 IIRC).
That would be Android 3.0 - starting with API level 11.
executeOnExecutor (Executor exec, Params... params)
--
Kostya Vasilyev
--
You received this message because you
I am using 2.1 in the emulator and 2.2.2 on my LG optimum and 2.3 on my
Wildfire S... the same thing happens in all 3 :(
Works fine till 4 or 5 times, then the threads dont start.
Thinking of rewriting it to use normal threads instead and a call
to runOnUiThread.
On Fri, Sep 30, 2011 at 5:15 PM,
4 matches
Mail list logo