Summary

In this chapter, we discussed two important parts of the Android SDK: the application-security model and location-based services.

With respect to security, you learned that Android requires all applications to be signed with a digital signature. We discussed ensuring build-time security with the emulator and Eclipse, as well as signing an Android package for release. We also talked about runtime security—you learned that the Android installer requests the permissions your application needs at install time. If a particular permission is denied, then any code that attempts to access a resource protected by a permission will result in a permission exception. We also showed you how to define the permissions required by your application, as well as how to sign the .apk file for deployment.

With respect to location-based services, we talked at length about using the MapView control and the MapActivity class. We started with the basics of the map and then showed you how to utilize overlays to place markers on maps. We even showed you how to geocode and handle geocoding in background threads. The last thing we talked about was the LocationManager class, which provides detailed location information through providers. You can choose from two provider types: GPS and Network. GPS providers obtain location information using Global Positioning Systems, while network providers utilize cell towers and WiFi networks.

In the next chapter, we'll talk about building and consuming services in Android.

chapter 8

0 0

Post a comment