I am using Smack version 4.1.1(tried with 4.1 as well) on Android Kitkat 4.4.2 &
even after setting SmackConfiguration.DEBUG to true I don’t see the XML stanzas
being exchanged between Android & chat server in logcat output.
Please help.
I am using Smack version 4.1.1(tried with 4.1 as well) on Android Kitkat 4.4.2 &
even after setting SmackConfiguration.DEBUG to true I don’t see the XML stanzas
being exchanged between Android & chat server in logcat output.
Please help.
Share some code so the viewer will be able to understand your exact problem.
I’m able to to see the stanzas by setting :
XMPPTCPConnectionConfiguration.Builder configBuilder = XMPPTCPConnectionConfiguration
.builder();
configBuilder.setDebuggerEnabled(true);
one more thing i want to ask.
have you imported smack debug jars in your debug folder??
like… smack-debug-4.1.0.jar
does that work in android ?
yeah thats working fine in android.
Thanks. I Forgot about smack debug jar. I will add it & see if it
produces the log.
FYI: Don’t use configBuilder.setDebuggerEnabled(true) on
Android, it is meant only for non-Android applications & will
crash your app.
Do you have smack-android in your dependencies?
Thanks for the advice bro but I have used this method as per smack 4.1 official documentation snippet and its running quite fine in my android application
I have both Smack-android & smack-android-extensions jars in my path.
Also, I have added smack-debug-slf4j-4.1.1 & smack-debug-4.1.1 in
my build path, but still don’t see the stanza exchange.
I am using Android KitKat v4.4.2
This thread is a bit ancient, but what’s the official way to enable debugging on Android:
I’ve enabled SmackConfiguration.DEBUG
and it seems to work on the first connection, but some time later I don’t see any more stanzas in the logcat output.