Version 1 of the Google Maps Android API as been officially deprecated as of December 3rd, 2012. This means that from March 3rd, 2013 you will no longer be able to request an API key for this version. No new features will be added to Google Maps Android API v1. However, apps using v1 will continue to work on devices. Existing and new developers are encouraged to use Google Maps Android API v2.
2.MapFragment 這種的局限在于,必須要安裝Google Play Service ,也就是說必須是原生rom。而且sdk要在12以上。我蛋疼了。
3.WebView 貌似很輕松的集成進來,但沒有實踐就木有發言權。 第一種方式我先略過了。大家都知道。說第二種,第三種會了再補上 MapFragment是剛出的google官方包,要集成進來還是挺麻煩的。官網鏈接 https://developers.google.com/maps/documentation/android/start 首先要到google conlose 添加api access權限,拿到apikey,創建一個project ,然后到services里把Google Maps Android API v2打開,再到api access里把你的project的keystore的SHA1和包名填進去,拿到唯一的api key 打開sdk manager--在Extras里把Android Support Libaray 和 Google Play Services都安裝,lib和samples都在sdk_path/extra/google/google_play_services下。導入../lib_project作為自己項目的libaray 這一步完了之后在manifest.xml文件里添加權限和api key。代碼如下