当前位置:首页 > 数据库 > 正文

android中gps的应用

2020-02-12 数据库

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

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

 

 1)activity_main.xml中

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

 2)修改androidManifest.xml

 

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/SQL/14704.html