因此,進出口教程這裏如下:http://www.marioalmeida.eu/2014/02/21/how-to-do-android-ipc-using-messenger-to-a-remote-service/#comment-366在消息傳遞捆綁
在略高於遠程服務清單中的部分就談到了服務通過使用此代碼
通過捆綁到消息回覆活動Messenger mess = msg.replyTo; //retrieves messenger from the message
Message m = new Message(); //create the message to send back to the client
Bundle b = new Bundle(); //Just to show how to send other objects with it
b.putString(「messengerName」, 「messenger1″); //this could be any parceable object
m.setData(b); //adds the bundle to the message
mess.send(m); //sends message
我不知道這是如何工作的。我看着android處理程序。它似乎根據什麼價值區分消息。但如果我遵循上面的話,那麼就沒有什麼價值(我可以看到)。所有發送的都是捆綁包。那麼,發送一個包的消息有什麼價值?如果它是空的,我如何區分使用bundle發送的消息和使用gets發送的消息?
你只是關注*什麼*消息淡水河谷? – 2014-11-21 05:13:24