android中gps的应用

在http://lbsyun.baidu.com/index.php?title=sdk/download&action中下载相关的开发包

解压后将其中的文件放入项目中,目录结构如下然后sync一下

android中gps的应用

 

 1)activity_main.xml中

<TextView
        android:id="@+id/position"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
  />

 2)修改androidManifest.xml

 

android中gps的应用

上一篇:bat-安卓有限制M的填充内存


下一篇:【JavaSE】方法递归调用基本使用