Enabling Wi-Fi on the Android Emulator

In the last three chapters, we have explored ways to customize and extend the Android emulator. In this chapter, we will pursue this topic to add Wi-Fi support in the Android emulator. If you are a developer using the Android emulator, you may notice that there is only data connection in the Android emulator. Some applications may be aware of the connection type and exhibit different behaviors according to the connection type. In this case, you cannot use an emulator to test your applications. In this chapter, we will cover the following topics:

  • Introducing Wi-Fi architecture in Android
  • Extending the x86emu device to support Wi-Fi connections
  • Testing a Wi-Fi connection on the x86emu device

The topics in this chapter are at an advanced level. We will analyze the Wi-Fi source code at the beginning of the chapter to help understand the Wi-Fi architecture. I recommend that you open a source code editor and locate the functions under discussion. This is a very efficient way to understand the source code analysis part in this chapter.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.28.133