登录
首页 » Android » Android 获取当前的纬度和经度位置信息

Android 获取当前的纬度和经度位置信息

于 2022-01-26 发布 文件大小:8.37 kB
0 117
下载积分: 2 下载次数: 1

代码说明:

Android 获取位置信息,使用getLatitude();getLongitude();来获取地理位置信息,显示当前的位置信息,如果在手机上运行,可以适时显示纬度和经度,我测试时是在虚拟机上运行,缺少GPS模块,因此没有显示纬度和经度。本例子较简单,运行效果如截图所示。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • xiaohuangji
    是一个基于android的java源码,调用小黄鸡小机器人api(Is an android based java source code, call the little yellow chicken little robot api)
    2013-08-02 11:21:27下载
    积分:1
  • android_hessian-4.0.7.jar
    android  hessian通信    hessian版本基于4.0.7调用的时候加上HessianProxyFactory factory=new HessianProxyFactory(); factory.setHessian2Reply(false);  
    2022-04-23 19:00:00下载
    积分:1
  • android 语音识别例子源码下载
    android 语音识别例子源码下载
    2015-04-30下载
    积分:1
  • android计算器源码文件
    android,基于eclipse的计算器,android,基于eclipse的计算器,android,基于eclipse的计算器,android,基于eclipse的计算器,android,基于eclipse的计算器,android,基于eclipse的计算器,android,基于eclipse的计算器,android,基于eclipse的计算器,android,基于eclipse的计算器,android,基于eclipse的计算器。
    2022-05-10 19:29:39下载
    积分:1
  • 仿微信隐藏超过4行的内容
    资源描述仿微信功能,当发布的内容超过四行时,隐藏过多的内容,点击可看全部
    2022-02-25 11:12:30下载
    积分:1
  • 仿qq聊天软件,xmpp实现,很精彩的例子
    仿qq聊天软件,xmpp实现,很精彩的例子
    2014-11-10下载
    积分:1
  • Android Proximity Alert 手机接近进警告或提示功能一例
    Android Proximity Alert 手机接近进警告或提示功能一例   LocationManager lm = (LocationManager)getSystemService(Context.LOCATION_SERVICE);   //定义接近区域的大致经度、纬度   double longitude = 113.39;   double latitude = 23.13;   //定义接近区域的半径(5公里)   float radius = 5000;   //定义接近区域后 触发的PendingIntent   Intent intent = new Intent(this,ProximityAlertReciever.class);   PendingIntent pi = PendingIntent.getBroadcast(this, -1, intent, 0);   //添加接近警告   lm.addProximityAlert(latitude, longitude, radius, -1, pi);
    2023-05-01 11:35:03下载
    积分:1
  • BaiDuMapApiDemo
    public class BMapApiDemoApp extends Application { static BMapApiDemoApp mDemoApp; // 百度MapAPI的管理类 BMapManager mBMapMan = null; // 授权Key // 申请地址:http://developer.baidu.com/map/android-mobile-apply-key.htm String mStrKey = "866FCA5A50327A48A9857274B5B0FA066DDCDF90"; boolean m_bKeyRight = true; // 授权Key正确,验证通过 // 常用事件监听,用来处理通常的网络错误,授权验证错误等 static class MyGeneralListener implements MKGeneralListener { @Override public void onGetNetworkState(int iError) { Log.d("MyGeneralListener", "onGetNetworkState error is " + iError); Toast.makeText(BMapApiDemoApp.mDemoApp.getApplicationContext(), "您的网络出错啦!", Toast.LENGTH_LONG).show(); } @Override public void onGetPermissionState(int iError) { Log.d("MyGeneralListener", "onGetPermissionState error is " + iError); if(iError
    2022-03-24 01:15:32下载
    积分:1
  • ComposingView
    View used to show composing string (The Pinyin string for the unselected syllables and the Chinese string for the selected syllables.) for Andriod.
    2013-10-21 00:11:39下载
    积分:1
  • AndroidMP3.tar
    一个Android手机操作系统开发的实例,是一个mp3播放器的例子(Android mobile phone operating system developed by an instance of an example of mp3 player)
    2010-09-12 21:02:15下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载