摘要: 上一篇中说到怎么获取key,下面来介绍怎么使用key来显示google地图步骤1:eclipse上打开android SDK Manager,安装google play services.步骤2:eclipse上建立google-play-services-lib,File->new->others->Android->Android project from existing code,然后将你刚刚安装的google play services包导入进去(在你sdk文件下),创建完成!创建好后你的eclipse上就会多一个google-play-services_li 阅读全文
posted @ 2013-06-28 13:07 HarleyGwak 阅读(3968) 评论(4) 推荐(2)
摘要: 要想使用google map api 必须从google网站上获取key之后才有权限使用,但是要想申请key必须要有证明书,也就是所谓的MD5.下面一步一步来说明: 步骤1:如果你使用的是eclipse编写android程序,那么就打开eclipse->Windows→Preference→Android→Build,其中Default debug keystore的值便是debug.keystore的路径,复制下来。 步骤2:执行命令:keytool -list -keystore debug.keystore,这时可能会提示你输入密码,这里输入默认的密码“android”,即可取得M 阅读全文
posted @ 2013-06-27 11:02 HarleyGwak 阅读(1039) 评论(0) 推荐(0)
摘要: 这儿暂时只提供我之间根据网上的方法编译出来的dll文件,大家如果需要直接在vs项目上导入就行了,然后在工具箱里就会自动添加一项,大家添加上去就知道了。下载地址:http://pan.baidu.com/share/link?shareid=2183202547&uk=889860800 阅读全文
posted @ 2013-06-21 01:15 HarleyGwak 阅读(540) 评论(0) 推荐(0)
摘要: 主要利用socket通信实现,具体代码如下客户端: 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 #include <sys/types.h> 5 #include <sys/socket.h> 6 #include <netinet/in.h> 7 #include <arpa/inet.h> 8 #include <unistd.h> 9 #define MAXLINE 51110 11 12 char *E 阅读全文
posted @ 2013-06-21 00:47 HarleyGwak 阅读(1490) 评论(1) 推荐(0)