Android Deep explore HAL and Driver Development-—— Eighth chapter

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.