In order to use SSL on Android SDK, you should apply and add the CA certs on the Android mobile phone. I think this might be the problem that caused the socket connect error. For more information, could you please provide:
1. The token information? I think the token will be printed in the log.
2. Did you add CA certs that the server used on mobile phone?