Hi
I would like to say, i want to get what message come inside queueidle.

public class ApplicationController extends Application
{
  @Override
  public void onCreate()
  {
        super.onCreate();

        MessageQueue queue =
Looper.getMainLooper().myQueue();
        IdleHandler  ih = new IdleHandler() {
                        @Override
                        public boolean queueIdle() {
                          // TODO Auto-generated method stub
                        //Here i want to know/intercept what message is coming 
from main
thread.
                                                // So i want to filter
some specific messages(UI Events only and what that
                                                // event)  and run
code here
                                                //on behalf of that.
i.e to run code whenever a ui event happens.

                                  return true;
                        }
                };
                queue.addIdleHandler(ih);

}

My goal is to know what an ui event comes at this point whenever it
happened in application.

Or is there any other way to know whenever a ui event happens in app.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to