TLS connection example for Android

That is not true if you are talking (also) about STARTTLS style TLS, which Smack does securely out of the box if the code snipped I gave above is used.