Hey all, I'm working on an application which requires a Wifi service. To ensure it does not start attempting to resolve addresses over the cell network, the app automatically starts the Wifi service when it is not available, and determines that connection has been established by polling for an IP address. My problem is that the emulator always reports that the IP address is 0, so the application never gets past this point. On the emulator, I don't really care if the IP address is not available, because it uses the host network anyway.
Currently, I have a flag in the code that enables me to turn off this functionality, but because I keep forgetting to change the flag accordingly, I was hoping there was a more automated way to acheive this... Is there a system variable/API call I can tap into to determine whether the app is running in the SDK emulator? Cheers, Sean --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

