GoogleMapsAndroidAPIkey-国立高雄大学-资讯工程学系.PPTVIP

  • 4
  • 0
  • 约7.09千字
  • 约 12页
  • 2018-07-05 发布于天津
  • 举报

GoogleMapsAndroidAPIkey-国立高雄大学-资讯工程学系.PPT

GoogleMapsAndroidAPIkey-国立高雄大学-资讯工程学系

Google Maps Android API v2 吳俊興 國立高雄大學 資訊工程學系 CSF645 – Mobile Computing 行動計算 /maps/documentation/android/ Introduction to the Google Maps Android API v2 The API automatically handles access to Google Maps servers data downloading map display, and response to map gestures Also use API calls To add markers, polygons, and overlays to a basic map, and To change the users view of a particular map area * * Distributed as part of the Google Play services SDK Encapsulated in the MapFragment class, an extension of Androids Fragment class, rather in the Activity class Able to add a map as a piece of a larger Activity Able to implement them by extending the Android standard Activity class, rather than extending the MapActivity used in version 1 Using vector tiles: data representation is smaller, with less bandwidth Caching is improved, so users will typically see a map without empty areas. Supporting 3D maps Google Maps Android API v2 Improvements ?Overall Process of?Adding a Map to an App Step 1. Download and configure the Google Play services SDK The Google Maps Android API is distributed as part of this SDK Step 2. Obtain an API key To do this, you will need to register a project in the Google APIs Console, and get a signing certificate for your app Step 3. Specify settings in the Application Manifest Step 4. Add a map to a new or existing Android project Run the Sample Code - com.example.mapdemo * /maps/documentation/android/start Run the Sample Code - com.example.mapdemo Make sure Google Play services added as an Android library project Select File Import Android Existing Android Code Into Workspace and click Next Select Browse..., enter share/google-play-services_lib, and click Finish View the sample code, or run the sample app locally Sample code is bundled with the Google Play services SDK Select File Import Android Existing Android Code Into Workspace and click Next. Select Browse..., enter android-sdk-folder/extras/google/google_play_services/samples/maps, an

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档