20.08.2016 Views

Professional Android 4 Application Development

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Android</strong> SDK Features x 7<br />

The <strong>Android</strong> SDK includes APIs for location-based hardware (such as GPS), the camera, audio, network<br />

connections, Wi-Fi, Bluetooth, sensors (including accelerometers), NFC, the touchscreen, and<br />

power management. You can explore the possibilities of some of <strong>Android</strong>’s hardware APIs in more<br />

detail in Chapters 12 and 15–17.<br />

Data Transfers Using Wi-Fi, Bluetooth, and NFC<br />

<strong>Android</strong> offers rich support for transferring data between devices, including Bluetooth, Wi-Fi<br />

Direct, and <strong>Android</strong> Beam. These technologies offer a rich variety of techniques for sharing data<br />

between paired devices, depending on the hardware available on the underlying device, allowing<br />

you to create innovative collaborative applications.<br />

In addition, <strong>Android</strong> offers APIs to manage your network connections, Bluetooth connections, and<br />

NFC tag reading.<br />

Details on using <strong>Android</strong>’s communications APIs are available in Chapter 16,<br />

“Bluetooth, NFC, Networks, and Wi-Fi.”<br />

Maps, Geocoding, and Location-Based Services<br />

Embedded map support enables you to create a range of map-based applications that leverage the<br />

mobility of <strong>Android</strong> devices. <strong>Android</strong> lets you design user interfaces that include interactive Google<br />

Maps that you can control programmatically and annotate using <strong>Android</strong>’s rich graphics library.<br />

<strong>Android</strong>’s location-based services manage technologies such as GPS and Google’s network-based<br />

location technology to determine the device’s current position. These services enforce an abstraction<br />

from specific location-detecting technology and let you specify minimum requirements (e.g.,<br />

accuracy or cost) rather than selecting a particular technology. This also means your location-based<br />

applications will work no matter what technology the host device supports.<br />

To combine maps with locations, <strong>Android</strong> includes an API for forward and reverse geocoding that<br />

lets you find map coordinates for an address, and the address of a map position.<br />

You’ll learn the details of using maps, the geocoder, and location-based services<br />

in Chapter 13, “Maps, Geocoding, and Location-Based Services.”<br />

Background Services<br />

<strong>Android</strong> supports applications and services designed to run in the background while your application<br />

isn’t being actively used.<br />

Modern mobiles and tablets are by nature multifunction devices; however, their screen sizes and<br />

interaction models mean that generally only one interactive application is visible at any time.<br />

Platforms that don’t support background execution limit the viability of applications that don’t need<br />

your constant attention.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!