如何把一个AVD(仿真器)进入离线模式? [英] How to put an AVD (emulator) into OFFLINE mode?

查看:481
本文介绍了如何把一个AVD(仿真器)进入离线模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想,当用户处于无信号区或当他的手机处于飞行模式来测试我的应用程序的行为。

I would like to test the behavior of my application when the user is in a no-signal zone or when his phone is in flight mode.

- > 如何,我把一个Android虚拟设备进入离线模式(其中没有互联网连接)

-> How do I put an Android Virtual Device into offline mode (where no connection to the internet is possible) ?

我已经试过如下:

  • 通过AVD设置激活飞行模式:(!浏览互联网还是有可能在飞行模式下)令人惊讶的,这并不能正常工作

  • Activating flight mode via the AVD settings: surprisingly, this does NOT work (browsing the internet is still possible in flight mode!)

禁用我的电脑上的网络连接:这显然作品,但情况并不理想,因为我需要上网的时候我正在测试我的应用程序

Disabling the network connection on my PC: this obviously works, but is not satisfactory as I need Internet when I am testing my app

推荐答案

我看到所有的同样的问题。 DDMS不能完全杀死它。无论是做F8。而且也没有打开模拟器内飞行模式。我们都应该大概星级记录在2009年这个问题的人。

I'm seeing all the same problems. DDMS doesn't fully kill it. Neither does F8. And neither does turning on airplane mode inside the emulator. We should all probably star this issue someone logged in 2009.

这篇关于如何把一个AVD(仿真器)进入离线模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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