WiFi in Emulator

by Billy Bob » Sat, 31 Jan 2009 19:50:30 GMT

Sponsored Links
 Hi all,

  I've been trying to create a local connection to a computer with a
Socket from the emulator thinking that it would automagically uses a
emulated wifi connection. It doesn't work, in particular because wifi
is not supported on the emulator:
  - Does a Socket connection automatically choose the fastest
connection (the wifi one if it exists).
  - Why wifi not supported by the emulator? Will it be?

   For those in countries still not blessed by the grace of having the
possibility to buy a Gphone, that can be useful...


WiFi in Emulator

by David Turner » Sun, 01 Feb 2009 01:39:17 GMT

 there is a single ethernet port in the emulated system. It is connected to
an internal firewall/router within the emulator code that emulates all
connectivity through standard BSD sockets. Which connection is used depends
entirely on your host machine setup, but wifi or no wifi doesn't have any
importance to the emulated system.

second, wifi is not supported in the emulator because it is darn impossible
to properly emulate that at the low-level protocol layer, and doing any kind
of bridging at a higher layer requires invasive modifications to the system
that would be no use to a normal device (except that they introduce much
more complexity and potential for bugs / security issues).

in the future, we're likely to create emulator-specific system images that
can have all kinds of hacks in them to support whatever weird feature, if
possible. Right now, we're essentially using the same system images for
devices and the emulator, which makes this kind of modifications

(yes, it also means that current device images already have a few
emulator-specific hacks in them, and we want to get rid of them).


Sponsored Links

Other Threads

1. How to (properly) get device orientation data?


I wanna thank you very much for your explanation. The official
documentation was very difficult to understand. And the example in the
api sample (the compass) does use a depreciated methods  (with

I don't understand what does remapCoordinateSystem and his parameters,
could you help?

Thank you.


2. notifyDataSetChanged() not updating listview after orientation change

Classic problem!

Use a static variable rather than onRetainConfigurationChange() lot of state
data to be saved && doesn't work all the time!!



3. Getting FileNotFound Exception when using FileReader

4. Extremely Simple Question

5. ListView refresh in ListActivity

6. ListView and CheckedTextView questions - help me, thanks!!!!

7. Implementing Recovery Mode in Android