UI not responsive

by Banesiu.Sever » Tue, 26 May 2009 07:58:46 GMT


Sponsored Links
 Greetings,

I'm using a service to download some (random) pics from flickr from
time to time and use them as wallpapers. I've noticed that while the
pics are downloading the UI of my app (the one used to start the
service and to configure it) is not responding (but any other app is).
I can't figure out why this happens. If I'm trying to change anything
in the UI while it is not responding I'm getting messages like this:

W/WindowManager(   49): No window to dispatch pointer action 0
W/WindowManager(   49): No window to dispatch pointer action 1

The Activity that starts the service does it by running this code on
it's onCreate method:
        ....
        Intent i = new Intent(this, BgChanger.class);
        startService(i);

The Service class is posted here:  http://paste.pocoo.org/show/119015/ 

Thanks,
Sever

--~--~---------~--~----~------------~-------~--~----~



UI not responsive

by Mark Murphy » Tue, 26 May 2009 08:10:54 GMT


 


You have no background thread. Your call to postDelayed() still runs
that Runnable on the UI thread, so it will tie up the UI. Try using
AsyncTask instead, to put your work on a background thread.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

_Android Programming Tutorials_ Version 0.95 Available!

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Boot animation restarts with android2.2 port on DM355

Dear All,

Im porting android 2.2 on DM355 EVM board. Two weeks back, i faced a problem
"Service Manager Exits 4 times in 4 minute". I posted the problem in this
group and got some nice suggestion. That problem was due to that config
options are not properly enabled for compiling staging dirver. After
correcting that problem, now there is one more problem in bootanimation.
Bootanimation is getting restarted with other services like zygote and
media. I understand from the web (from similar kind of post), that this kind
of problem is due to memory constraint. I have 128MB total memory and also
almost 40 MB is free when the problem occurs. I also reduced the no of
services(like bootanim, RIL, )  in init.rc but that didnt help. Im using
NFS.

Please help me in solving this issue.

PS: i have attached the log file for your reference.

Regards,
Raghu B

-- 


dm355_zygoteerror
Description: Binary data

2. porting android to omnia HD i8910

i was trying to port the android os to my omnia i8910 but cannot find
a way to begin.. please help me with this

-- 

3. Any other forums..?

4. startNativeTracing cause segmantation fault

5. Surfaceflinger die during upgradation

6. NEED help... hh gak bisa simpen hasil jepretan foto

7. How to display....?