android中gps的应用

在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

猜你喜欢

转载自www.cnblogs.com/837634902why/p/12111333.html