The eighth chapter mainly takes the Mymap service system as an example, introduces the Android Google Map, the Android location service, the case reconstruction, uses the Java development GPS and the Google Map localization application.
The Android Google Map:google map is an electronic map service provided by Google, with 3 views: vector Maps (with administrative districts, transportation and business information), satellite photos of different resolutions, terrain views (to show terrain and contours).
Apply for Google Maps Android API Key: Find the Create KeyStore certificate file and generate the MD5 certified fingerprint. Write a Google Map: Create a project, write a mapactivity, write a mapview layout, add intent access, add a map function library. The Google Maps Android API now offers 3 display modes: Traffic mode, satellite mode, and Street View mode.
The Android platform currently supports two positioning methods: GPS positioning, mobile network location, positioning via mobile operator's cellular mobile phone base station or Wi-Fi access point. Positioning operation: 1) Open Location Service (Getsystemservice () method), 2) simulation test, 3) GPS and Google map location. Case Reconstruction: Map display mode: Refactor the "Locate query" locate () method, add a thread to handle the function of the query location, and refactor the "Query method": Refactor the "Query Around" find () method, adding a thread that handles the function of the query location in that thread. The "query around" method is basically the same as the "locate query" method, where you need to implement a location query in a thread, but you cannot have the processing of the update UI. This chapter focuses on the use of Google Map APIs and GPS.
Android Deep explore HAL and Driver Development-—— Eighth chapter