UI not responsive

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

Sponsored Links

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);

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



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. What is the main differences between android sdk 1.5 and android sdk 2.0



2. noob permissions question

Hi all,

I'm a noob with Android, and am trying to grasp a few things. This
question revolves around permissions...

Say I have an Application, and for this Application I give it
permissions, you know, "can use SMS, sockets, etc".
thats simple enough...I can put that data in the applications

Now, say I have some LOGICAL "users" that can use this app. The
"users" would "login" from within the application and once logged in
they can proceed. But what I want to do is, adjust the PERMISSIONS for
the Application based on who the USER is. I know the Application could
manage these permissions, but I was wondering if I could adjust the
manifest realtime or what?

Any thoughts on this?


~Kam (^8*


3. Tutorialnya Cara Install Fresh Android OS dimana?

4. App is missing on AVD

5. RoboGuice

6. Boss kita mejeng

7. Salam dari member baru