如何限制Android模拟器上的互联网连接速度? [英] How to limit speed of internet connection on Android emulator?

查看:156
本文介绍了如何限制Android模拟器上的互联网连接速度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要测试应用程序的工作与缓慢的互联网连接。
如何在Android模拟器上模拟缓慢的互联网连接?

I need to test app for work with slow internet connection. How to simulate slow internet connection on Android emulator?

推荐答案

您可以执行以下操作:

如果您需要临时更改净速度,请在仿真器工具栏上单击三个点(设置),转到 Cellular 选项卡,并在那里配置网络速度。

If you need to change net speed temporarily, then on an emulator toolbar, click three dots (settings), go to Cellular tab and configure the network speed there. You need to have a recent Android Tools.

如果您要为某些模拟器图片永久设置此速度:

If you want to set this speed permanently for some emulator image:


  1. 打开菜单工具 - > Android - > AVD管理器

  2. 选择/创建您的仿真器avd图片,
  3. 点击显示高级设置按钮

  4. 设置所需的净速度

  5. 重新启动模拟器

  1. Open menu Tools -> Android -> AVD Manager
  2. Select/create your emulator avd image, click Edit
  3. Click Show Advanced Settings button
  4. Set the desired net speed
  5. Re-launch the emulator

旧的回答(过时)

如果您在Eclipse中工作,请转到运行 - >运行配置,选择您的运行配置,然后转到目标标签。在这里,您会找到一个网络速度组合框(在仿真器启动参数部分下)。

If you are working in Eclipse, go to Run->Run Configurations, select your run configuration and then go to "Target" Tab. There you will find a "Network Speed" combobox (under the "Emulator Launch Parameters" section).

如果您从命令行运行模拟器,则可以使用 -netspeed cmd行参数(运行 emulator -help-netspeed 以了解可能的选项概述)

If you are running emulator from command line, then you can use "-netspeed" cmd line parameter (run emulator -help-netspeed for overview of possible options)

这篇关于如何限制Android模拟器上的互联网连接速度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆