Wi-Fi is so ubiquitous in cities that you can find a Wi-Fi network virtually anywhere you go. Local Wi-Fi networks offer us the bandwidth and response time we need for multiplayer games while freeing us from worry about data plans and transmission quotas. As the final project for this chapter, we’ll create a game for two players using the accelerometer on each device to control the tilt of a shared playing surface with two balls in play.
LOGMEIN HAMACHI ANDROID ANDROID
Then we’ll build a collaborative drawing app, where we use the Wi-Fi network to share a drawing canvas between two Android devices.
LOGMEIN HAMACHI ANDROID PC
We’ll start this chapter by creating an app that exchanges data between an Android device and a desktop PC using the Open Sound Control ( OSC) networking format. We will cover peer-to-peer networking, to which Wi-Fi Direct and Bluetooth belong, in the next chapter, called Chapter 7, Peer-to-Peer Networking Using Bluetooth and Wi-Fi Direct, and cover NFC in the following one, called Chapter 8, Using Near Field Communication (NFC). There are four ways to connect devices without sending data over the Internet: Wi-Fi, Wi-Fi Direct, Bluetooth, and near field communication ( NFC), listed in decreasing order in terms of connection distance, power consumption, and speed. This can be useful, for example, to inventory stock in a retail store, monitor a patient, view data from a home security or automation system, or participate in a multiplayer game. You will be able to write real-time interactive apps running on multiple devices that take advantage of the high bandwidth offered by a Wi-Fi network. The ability to exchange data between Android devices and PCs within a local area network allows us to write mobile apps that can connect multiple users without a mobile carrier data plan.īy the end of this chapter, you’ll be able to send data between computers and Androids within a Wi-Fi network. In this chapter we’ll focus on wireless local area networks. Social media, location-based services, and multiplayer games are just a few examples of mobile applications that rely on frequent updates delivered over the Internet via cellular, cable, or satellite networks.