本文整理了Java中android.os.Message.toString()
方法的一些代码示例,展示了Message.toString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Message.toString()
方法的具体详情如下:
包路径:android.os.Message
类名称: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)
内容来源于网络,如有侵权,请联系作者删除!