Project

General

Profile

Bug #455

Could not new COnnectionConfiguration if mService is NUMBERIC IP, in BeemSerice.initConnectionConfig() , base on Android X86

Added by Anonymous about 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
10/30/2012
Due date:
% Done:

0%

Estimated time:
Affected version:
0.1.7
Locale:
Close

Description

I found in Android X86, it runs kernel Linux3.0.XX, but Android SDK is Kernel2.6,
I use the numberic ip, 192.168.1.11, as XMPP server, it will show me connection fail.
And I trace the code, in BeemService.initConnectionConfig(), it wolud show me DNS EXCEPTION out!!

so, I try to change the code such as:

if (mSettings.getBoolean("settings_key_specific_server", false)) {
mConnectionConfiguration = new ConnectionConfiguration(mHost, mPort, mService, mProxyInfo);
} else {try {
mConnectionConfiguration = new ConnectionConfiguration(mService, mProxyInfo);
} catch (Exception e) {
mConnectionConfiguration = new ConnectionConfiguration(mHost, mPort, mService, mProxyInfo);
}
}

It works fine!!

TEST PLATFORM:
Android 4.0.4, PAD, X86, Linux Kernel: 3.0.XX

Also available in: Atom PDF