Hello everyone the title says it all. I'm using asmack-android-8-4.0.6.jar.
The code is:
//1. connect to server
ConnectionConfiguration ConnectionConfiguration = new ConnectionConfiguration("gmail.com");
ConnectionConfiguration.setSecurityMode(SecurityMode.required);
ConnectionConfiguration.setDebuggerEnabled(true);
XMPPConnection connection = new XMPPTCPConnection(ConnectionConfiguration);
try { connection.connect(); report+="Connected to server\n"; }
catch (ConnectionException e){ report+=e.toString()+" - (1)\n"; }
catch (SmackException e) { report+=e.toString()+" - (2)\n"; }
catch (IOException e) { report+=e.toString()+" - (3)\n"; }
catch (XMPPException e) { report+=e.toString()+" - (4)\n"; }
tv.setText(report);
//2. login
try{ connection.login("myGmailId","MyGmailPwd"); report+="Logged in server\n";}
catch (SaslException e) { report+=e.toString()+"\n"; }
catch (XMPPException e) { report+=e.toString()+"\n"; }
catch (SmackException e) { report+=e.toString()+"\n"; }
catch (IOException e) { report+=e.toString()+"\n"; }
I can't get to the second part since already from the first part I get the following error:
org.jivesoftware.smack.SmackException$Connection Exception (1)
I have also configured proguard with
-dontnote org.xbill.DNS.spi.DNSJavaNameServiceDescriptor
-dontwarn org.xbill.DNS.spi.DNSJavaNameServiceDescriptor
# See http://stackoverflow.com/questions/5701126, happens in dnsjava
-optimizations !code/allocation/variable
# Smack specific configuration
-keep class de.measite.smack.AndroidDebugger { *; }
-keep class * implements org.jivesoftware.smack.initializer.SmackInitializer
-keep class * implements org.jivesoftware.smack.provider.IQProvider
-keep class * implements org.jivesoftware.smack.provider.PacketExtensionProvider
-keep class * extends org.jivesoftware.smack.packet.Packet
-keep class org.jivesoftware.smack.ReconnectionManager
-keep class org.jivesoftware.smackx.disco.ServiceDiscoveryManager
-keep class org.jivesoftware.smackx.xhtmlim.XHTMLManager
-keep class org.jivesoftware.smackx.muc.MultiUserChat
-keep class org.jivesoftware.smackx.bytestreams.ibb.InBandBytestreamManager
-keep class org.jivesoftware.smackx.bytestreams.socks5.Socks5BytestreamManager
-keep class org.jivesoftware.smackx.filetransfer.FileTransferManager
-keep class org.jivesoftware.smackx.iqlast.LastActivityManager
-keep class org.jivesoftware.smackx.commands.AdHocCommandManager
-keep class org.jivesoftware.smackx.ping.PingManager
-keep class org.jivesoftware.smackx.privacy.PrivacyListManager
-keep class org.jivesoftware.smackx.time.EntityTimeManager
-keep class org.jivesoftware.smackx.vcardtemp.VCardManager
-keep class org.jivesoftware.smack.CustomSmackConfiguration
please please any help in welcome since I'm stuck since a month. thanx PAtrick