Initialize the xmpp connection config in a background thread.
On android > 3.x network operations on the main thread crash the application.
This move the dns request made by the ConnectionConfiguration in another
thread by lazily initializing the XMPPConnection
package net.java.otr4j.crypto;
import net.java.otr4j.OtrException;
@SuppressWarnings("serial")
public class OtrCryptoException extends OtrException {
public OtrCryptoException(Exception e) {
super(e);
}
}