I think there is a problem is the Smack Documentation, which might need correction. http://download.igniterealtime.org/smack/docs/latest/documentation/messaging.htm l
Line 24:
Message newMessage = new Message();
newMessage.setBody("Howdy!");
message.setProperty("favoriteColor", "red");
newChat.sendMessage(newMessage);
Problems:
-
It seems Message Class does not have any method called setProperty(). Message (Smack 4.1.5 API)
-
It should be newMessage.setProperty() and not message.setProperty().
Please verify and correct these mistakes. Anyway, I am in need of the setProperty() method.