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. unimplement glGetFloatv()


when i call glGetFloatv() function in Android 2.1 Emulator, i can
found the  system log "libEGL  called unimplemented OpenGL ES API" on
DDMS LogCat.
Maybe OpenGL ES functions are not fully implemented.

How can i use the function?
What is alternative way? - especailly simple :)


2. another password field appears when switching orientation while editing the field

I work on my first mobile website. it has a registration page with a
few text fields.
When the user edit the password field the virtual keyboard is opened.
if he flips the orientation while in edit mode another password field
appear on the screen.
it's a bit smaller than the original field and it's a duplicate -
whatever you type in one field will appear on the other.

What's the reason for this bug and how to fix it? I only tested on
Android 2.1
(btw, it's working fine on an iPhone)


3. jni armeabi code compatibility

4. Android Development

5. My app opens a webview, user writes down password and selects "remember". How can I clear the remembered password?

6. Can I get assistance using Google Maps API?

7. using activity from a different apk