sendEmptyMessage And sendMessage

/**
* Sends a Message containing only the what value.
*/
public final boolean sendEmptyMessage(int what)
{
  return sendEmptyMessageDelayed(what, 0);
}


/**
* Pushes a message onto the end of the message queue after all pending messages
* before the current time. It will be received in {@link #handleMessage},
* in the thread attached to this handler.
*/
public final boolean sendMessage(Message msg)
{
  return sendMessageDelayed(msg, 0);
}

posted @ 2012-01-21 13:01  卡马克  阅读(614)  评论(0编辑  收藏  举报