Where does Internet access drop on the emulator when mobile connection is switched off?

11 views
Skip to first unread message

François Droumaguet

unread,
Apr 13, 2011, 11:28:34 AM4/13/11
to android-platform
Hello,

I am currently working on a simulation of the WiFi environment on the
android emulator. I can simulate available WiFi networks, and connect
to them (it is of course not a real connection). What I want is to
have Internet access nonetheless.
On the emulator, I have Internet access from the beginning, when only
mobile is enabled. When I put WiFi on, I still have Internet access.
BUT when I CONNECT to one of my simulated WiFi networks, I don't have
it anymore.

What I want to know is WHERE does this happen in the source code?
I suspect that it is done when the ConnectivityService handles
connectivity change and tears down the MobileDataStateTracker. But I
don't see where exactly the connection drops.

Also, I want it to be clear : my goal is NOT to have Internet access
on the android emulator or to test applications which use WiFi. My
goal is to simulate WiFi connections with Internet access, and ONLY on
the emulator.
Reply all
Reply to author
Forward
0 new messages