我怎样才能Android模拟器连接到互联网?
我是新来的android开发。我曾尝试与互联网Android模拟器连接,但我不能够连接。我曾尝试按照cmp命令。
I am new to the android development . I have tried to connect internet with Android emulator, but i am not able to connect. I have tried following command in cmp.
模拟器-avd添加my_id -http代理
HTTP://xxx.xxx.x.x:8080
emulator -avd my_id -http-proxy http://xxx.xxx.x.x:8080
模拟器-avd添加my_id -dns服务器
xxx.xxx.xxx.xx -http代理
HTTP://xxx.xxx.x.x:8080
emulator -avd my_id -dns-server xxx.xxx.xxx.xx -http-proxy http://xxx.xxx.x.x:8080
和在模拟器中我也已经设置代理服务器设置(设置 - >无线和网络 - >移动网络 - >接入点名称)。另外,我在Eclipse中设置代理服务器设置(Windows的> preferences-> Android-> Launch->默认仿真器选购件)我.still我能够获得互联网接入到仿真器。请任何人给的建议。先谢谢了。
And also I have set proxy settings in the emulator (settings -> Wireless & Networks ->Mobile Networks -> Access Point Names). Also , I set proxy settings in eclipse (Windows-> Preferences-> Android-> Launch-> Default Emulator Options).still i am able to get the internet access to the emulator. Please any one give the suggestion. Thanks in advance.
在仿真器的顶部应该有一个3G的图标,然后在图标旁边过它显示这将是一个普通手机上的网络的力量吧。如果其中的一些酒吧不亮了,然后你的模拟器可能已经失去了它的连接。发生这种情况每过一段时间。请尝试重新启动模拟器。如果你已经做了这个尝试删除并创建一个新的模拟器。如果您的计算机连接到互联网,你不应该做任何额外得到在模拟器上工作的连接。
On the top of the emulator there should be a 3G icon then an icon next too it displaying what would be network strength bars on a normal phone. If some of those bars are not lit up then your emulator may have lost its connection. This happens every once in a while. Try restarting the emulator. If you have already done this try deleting and creating a new emulator. If your computer has an internet connection you shouldn't have to do anything extra to get the connection on the emulator working.