现在的位置: 首页 > 综合 > 正文

写给喜欢抄博客的一群SB

2013年03月29日 ⁄ 综合 ⁄ 共 3124字 ⁄ 字号 评论关闭
1,最近在下班的时候看看Google地图,好久没有研究地图了,忘记了,google查找一下 Google map使用的方法。尼玛,中文基本上是使用 Google V1版本的继承MapActivity的方法。但是我试了不行了。key不能申请了,使用以前的key也不稳定了。这个申请方法以前确实是这样,我不反对。我打开网址 http://code.google.com/intl/zh-CN/android/maps-api-signup.html一看,尼吗,此页面已移到“Google 开发者”。欢迎访问! 了解详情 关闭   ,Google 默认使用Google Maps Android API v2,, V3已经出来了。
。但是我看见好多博客上写的这个方法的时间是4月份以后,还是V1 的方法。你们是不知道3月份以后,这个方法已经不用了吗???????????????/

Ubuntu申请APIkey

在控制台输入
keytool -list -alias androiddebugkey -keystore "/home/qjc/.android/debug.keystore"  -storepass android -keypass android

加红的是你的默认的debug keystore位置
打开方式  打开Eclipse,依次单机“windows”,“preferences”,“android”,“build”,查看默认的debug

JDK为1.6的同学如果操作正确的话会得到MD5的指纹,然后去http://code.google.com/intl/zh-CN/android/maps-api-signup.html获取APIkey


1.首先找到debug keystore位置:

  打开Eclipse--->Windows--->Preferences--->Android--->Build

一般是这样的路径 C:\Documents and Settings\Administrator\.android\debug.keystore

2.在cmd中执行

keytool -list -alias androiddebugkey -keystore "C:\Documents and Settings\Administrator\.android\debug.keystore" -storepass android -keypass android

D:\install\Java\jdk1.6.0_24\bin>keytool -list -alias androiddebugkey -keystore "
C:\Documents and Settings\Administrator\.android\debug.keystore" -storepass andr
oid -keypass android
androiddebugkey, 2011-3-14, PrivateKeyEntry,
认证指纹 (MD5): 33:27:0C:5F:63:4D:E2:D2:8A:E6:E2:5B:F8:86:6E:C5
3.打开 http://code.google.com/intl/zh-CN/android/maps-api-signup.html

复制 认证指纹 (MD5):到下面的 My certificate's MD5 fingerprint

4.然后点击 Generate Api key

?
感谢您注册 Android 地图 API 密钥!


我就郁闷了(不是只楼上2位的文章,我只是举例)

http://code.google.com/intl/zh-CN/android/maps-api-signup.html,这个网站能直接生成key,吗?

4月份以后,哪个SB使用了这个网址直接申请key 了?
我大四还在读,英语不过四级,编程很垃圾,尼吗基本英语我会啊,


The API is now distributed as part of the Google Play services SDK, which you can download with the Android SDK Manager. To learn how to install the package, see Installing the Maps API SDK.
Maps are now encapsulated in the MapFragment class, an extension of Android's Fragment class. Now you can add a map as a piece of a largerActivity. With a MapFragment object, you can show a map by itself on smaller screens, such as mobile phones, or as a part of a more complex UI on larger-screen devices, such as tablets.
Because maps are encapsulated in the MapFragment class, you can implement them by extending the Android standard Activity class, rather than extending the MapActivity used in version 1.
The Maps API now uses vector tiles. Their data representation is smaller, so maps appear in your apps faster, and use less bandwidth.
Caching is improved, so users will typically see a map without empty areas.
Maps are now 3D. By moving the user's viewpoint, you can show the map with perspective.


这几句话看不懂吗?
我来翻译下
第一句话,API在Google Play服务SDk 中,您可以下载通过SDK Manager。学习如何安装这个包,参考这个链接
第三句话,因为地图是封装在MapFragment类,你可以实现他们通过继承标准的 Activity类,而不是使用版本1中的MapActivity(看好了,而不是 V1)

4月份以后还在发表V1方法  MapActivity使用方法的SB们看清楚了,因为地图是封装在MapFragment类,你可以实现他们通过继承标准的 Activity类,而不是使用版本1中的MapActivity。。。
你们到底是在刷积分还是干啥?这个愚蠢的抄袭方法,很好吗?现在实验过吗?还可以吗?

V2以后,Google已经使用WebView 了,不是 MapActivity了,我不知道V2还需要申请key不,反正我现在使用 的V3没有使用key。还申请个毛啊,有个 Gogole帐号,开通https://code.google.com/apis/console/#project:44452444****就行了(反正目前我是这样弄的)

这里有个 Google地图的开发中文指南https://developers.google.com/maps/documentation/staticmaps/?hl=zh-CN

1.这里我终于明白一个问题,为什么中国程序猿这么多,过时的方法了。一群SB还在天天转。天天抄,转的还行,至少我还知道是转的,不是新写的,有的人还搞个自己写的,写你妹啊。天下文章一大抄,我自己也抄,抄了学到东西了 ,也算抄对了。抄尼吗一个过时方法的在博客上天天到处转。

不是做一辈子的程序猿,还能做什么?

虽然我写代码很垃圾,但是也没有垃圾到到处宣传一个不能用的方法。













抱歉!评论已关闭.