title: Custom extension element in Stanza for Smack 4.1.4
body: <p>I am moving my android application from asmack-android library to Smack 4.1.4. I have some PacketExtensions in the asmack version of Smack, which uses PacketExtension and PacketExtensionProvider classes to handle. Since the PacketExtension is deprecated in Smack 4.1.4, I am confused among the classes and interfaces ExtensionElement, DataPacketExtension, ExtensionElementProvider , DefaultExtensionElement. Could any one of you give me an example of creating an extension which can be added with stanza and parse back...<a href="https://www.igniterealtime.org/builds/smack/docs/latest/javadoc/org/jivesoftware" rel="nofollow">https://www.igniterealtime.org/builds/smack/docs/latest/javadoc/org/jivesoftware</a> /smack/packet/DefaultExtensionElement.htmlhttps://www.igniterealtime.org/builds/smack/docs/latest/javadoc/org/jivesoftware /smack/provider/ExtensionElementProvider.html</p>