android.os.Message.toString()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(1.1k)|赞(0)|评价(0)|浏览(380)

本文整理了Java中android.os.Message.toString()方法的一些代码示例,展示了Message.toString()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Message.toString()方法的具体详情如下:
包路径:android.os.Message
类名称:Message
方法名:toString

Message.toString介绍

暂无

代码示例

代码示例来源:origin: facebook/facebook-android-sdk

@Override
public void handleMessage(Message msg) {
  if (!isResumed()) {
    // if we're not in between onResume and onPause, don't do animation transitions
    return;
  }
  switch (msg.what) {
    case ROCK:
      showViews(gestureTextViews[ROCK], gestureImages[ROCK]);
      sendNextMessage(PAPER);
      break;
    case PAPER:
      showViews(gestureTextViews[PAPER], gestureImages[PAPER]);
      sendNextMessage(SCISSORS);
      break;
    case SCISSORS:
      showViews(gestureTextViews[SCISSORS], gestureImages[SCISSORS]);
      sendNextMessage(SHOOT);
      break;
    case SHOOT:
      showViews(shootTextView);
      switchState(RpsState.PLAYING, false);
      break;
    default:
      Log.e(TAG, "Unexpected message received: " + msg.toString());
      break;
  }
}

代码示例来源:origin: fr3ts0n/AndrOBD

log.log(Level.FINEST, String.format("Handler notification: %s", msg.toString()));
    log.log(Level.FINEST, String.format("State change: %s", msg.toString()));
    switch ((CommService.STATE) msg.obj)

相关文章