tries to make a connection . if successful returns this connection and saves the settings . if jid == notifiedaddress , same account mode is assumed . throws an xmppexception on error . concode_field_sep String[] USERNAME_IS_FULL_JID concode_field_sep String needsDomainPart concode_elem_sep void savePreferences concode_elem_sep XMPPConnection tryToCreateAccount
XMPPConnection function ( String arg0 , String arg1 , String arg2 , SettingsManager arg3 ) { String loc0 = StringUtils . parseServer ( arg0 ) ; XMPPConnection loc1 = new XMPPTCPConnection ( new ConnectionConfiguration ( loc0 ) ) ; loc1 . connect ( ) ; loc1 . login ( arg0 , arg1 ) ; savePreferences ( arg0 , arg1 , arg2 , arg3 ) ; return loc1 ; }