0

我一直在尝试将我的 Nexus S 连接到远程数据库(在我的本地计算机中设置)。

在本地计算机中,我设置了一个 MYSQL 数据库,并使用我从我的 android 应用程序激活的 php 访问它。

当我从模拟器测试它并使用 HTTP post 方法连接到另一台本地机器(设置服务器的地方)时,我的程序工作正常。

因此,当我尝试使用 Nexus S 连接到它时,我发现存在一些连接问题。

有人告诉我在连接到本地计算机时使用本地计算机的外部 IP 或静态 IP,我无法弄清楚。

这是我在尝试连接并获得超时异常时得到的日志。

D/dalvikvm(  368): GC_EXPLICIT freed 4K, 51% free 3362K/6727K, external 1625K/2137K, paused 58ms

I/TelephonyRegistry(  107): notifyServiceState: 0 home Vodafone Vodafone 40445 (manual) UMTS CSS not supported -1 -1RoamInd: -1DefRoamInd: -1EmergOnly: false

I/TelephonyRegistry(  107): notifyDataConnection: state=2 isDataConnectivityPossible=true reason=null interfaceName=rmnet0 networkType=3

I/TelephonyRegistry(  107): notifyServiceState: 0 home Vodafone Vodafone 40445 (manual) HSDPA CSS not supported -1 -1RoamInd: -1DefRoamInd: -1EmergOnly: false

I/TelephonyRegistry(  107): notifyDataConnection: state=2 isDataConnectivityPossible=true reason=null interfaceName=rmnet0 networkType=8

I/TelephonyRegistry(  107): notifyServiceState: 0 home Vodafone Vodafone 40445 (manual) UMTS CSS not supported -1 -1RoamInd: -1DefRoamInd: -1EmergOnly: false

I/TelephonyRegistry(  107): notifyDataConnection: state=2 isDataConnectivityPossible=true reason=null interfaceName=rmnet0 networkType=3

I/TelephonyRegistry(  107): notifyServiceState: 0 home Vodafone Vodafone 40445 (manual) HSDPA CSS not supported -1 -1RoamInd: -1DefRoamInd: -1EmergOnly: false

I/TelephonyRegistry(  107): notifyDataConnection: state=2 isDataConnectivityPossible=true reason=null interfaceName=rmnet0 networkType=8

如果有人可以给我一些积分

4

1 回答 1

0

我很确定日志本身很好。我们正在开发一个流媒体应用程序,当歌曲从移动 3G 网络流式传输时,我们得到了相同的日志。

正如评论中提到的其他内容,日志很可能与您的连接问题无关。

超时本身可能意味着您尝试访问的主机不可访问。

于 2014-05-20T20:03:35.027 回答