[maemo-developers] [maemo-developers] Avoiding killing slow-starting applications

From: Gustavo Sverzut Barbieri barbieri at gmail.com
Date: Fri Oct 21 23:10:49 EEST 2005
On 10/21/05, Toni Willberg <toniw at iki.fi> wrote:
> Matthew Garrett wrote:
> > My application takes a long time to train itself from its initial data
> > set, which is done before any widgets are displayed. This seems to make
> > the application launcher unhappy, and it gets killed just as it's
> > starting. How can I avoid this happening?
> >
>
> First tought is to modify your application to display something before
> it reads the data in...

Please use a thread to load your data. Other wise user may think that
it broke/hang!

You can do something like:

display: loading data
launch a thread to load data
join thread (wait it to finish)
display: data loaded
show your screen

--
Gustavo Sverzut Barbieri
---------------------------------------
Computer Engineer 2001 - UNICAMP
GPSL - Grupo Pro Software Livre
Cell..: +55 (19) 9165 8010
Jabber: gsbarbieri at jabber.org
  ICQ#: 17249123
   MSN: barbieri at gmail.com
 Skype: gsbarbieri
   GPG: 0xB640E1A2 @ wwwkeys.pgp.net

More information about the maemo-developers mailing list