AsyncTask : all onProgressUpdate() done at the end of task

by Romain Guy » Sun, 07 Mar 2010 03:12:59 GMT

Sponsored Links

Why are you doing Looper.prepare(); in doInBackground()? Also, what
you are seeing would indeed happen if you are calling get() somewhere
on the UI thread, or otherwise blocking the UI thread after calling
execute() on your task.


AsyncTask : all onProgressUpdate() done at the end of task

by Nicolas H » Tue, 09 Mar 2010 23:28:03 GMT

  am doing Looper.prepare(); in doInBackground() because without that,
it seems that exceptions are not catched.
Without that, if I remember, the application simply crashes...

The last call on my UI thread is thread.execute() (during
onCreate()) , so it seems that no get() is called, even if I don't
know what this
function (get) should do.

I changed my code and instead of loading serialized objects, I build
the dictionary and create objects in the background thread.
And the progress bar is correctly filled when each Family object is

For user it takes about the same time as unserialization (I have not
measured exactly), but the apk is about 850ko (due to big xml files)
contrary to 350ko with file containing serialized objects.

On 6 mar, 20:12, Romain Guy <> wrote:
> >

Sponsored Links

Other Threads

1. How to Get 3G/UMTS Signal Strength Values: HELP PLEASE!

Hello All

 I am a Cellular RF Engineer and have been trying to get some specific
WCDMA/3G/UMTSsignal measurement values out of Android SDK environment.
Using the public class SignalStrength I have been successful in
getting meaningful GSM values (with the assistance of a Software
Engineer) using getGsmSignalStrength(), but only yield "-1" values for
getCdmaDbm() and getCdmaEcio() respectively which are supposed to
return relevant CDMA signal stregth values. Certainly -1 is a pretty
good clue that something I am doing isn't right.

My phone was definately on a UMTS at the time and I can read UMTS
measurements in the field test software.

I think it is quite likely that getCdmaDbm() and getCdmaEcio() methods
are for CDMA networks, not 3G/WCDMA, technidally speaking CDMA and
WCDMA are different technologies.  This leaves me high and dry in
terms of trying to get the 3G measurements of interest (EcIo and RSSI
and/or RSCP are the most important in terms of coverage). Probably
there are some other methods out there but I simply can't find them in
the reference material on the web:

Can someone please assist me? There must be a way (after all, field
test s/w can get this information) but how? Someone wrote an app
called Cellumap which gets UMTS, GSM and CDMA measurement information.

Aussie 123


2. Error while extracting bootchart.tgz

Hi All,

I working on bootchart on GB.

In host:
I am install bootchart on my ubuntu-10.10
as apt-get install bootchart

In target:
I am able to create the bootchart.tgz,
but while i am extracting i got the following error like

parsing 'Documents/bootchart.tgz'
parsing 'header'
parsing 'kernel_pacct'
parsing 'proc_diskstats.log'
parsing 'proc_ps.log'
Traceback (most recent call last):
  File "/usr/bin/bootchart", line 23, in <module>
  File "/usr/lib/pymodules/python2.6/pybootchartgui/", line
111, in main
    options.crop_after, options.annotate)
  File "/usr/lib/pymodules/python2.6/pybootchartgui/", line
248, in parse
    state = parse_paths(writer, ParserState(), paths)
  File "/usr/lib/pymodules/python2.6/pybootchartgui/", line
237, in parse_paths
    state = _do_parse(writer, state, name, tf.extractfile(name))
  File "/usr/lib/pymodules/python2.6/pybootchartgui/", line
201, in _do_parse
    state.ps_stats = _parse_proc_ps_log(writer, file)
  File "/usr/lib/pymodules/python2.6/pybootchartgui/", line
76, in _parse_proc_ps_log
    offset = [index for index, token in enumerate(tokens[1:]) if
token[-1] == ')'][0]
IndexError: list index out of range

Can any one give me the pointers to solve this issue.



3. PadKite鈩?: The first multitouch mobile mouse. Help needed from the community.

4. Android Keystore

5. Mapactivity second intent

6. Aw: requestLocationUpdates ignore minTime parameter?

7. Restrict use/installation of third party apps