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
Message newMessage = new Message(); newMessage.setBody("Howdy!"); message.setProperty("favoriteColor", "red"); newChat.sendMessage(newMessage);
1. It seems Message Class does not have any method called setProperty(). Message (Smack 4.1.5 API)
2. It should be newMessage.setProperty() and not message.setProperty().
Please verify and correct these mistakes. Anyway, I am in need of the setProperty() method.