首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > Android Proximity Alert 手机接近进警告或提示功能一例

Android Proximity Alert 手机接近进警告或提示功能一例

  • 资源大小:16.61 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: Android

资 源 简 介

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);

文 件 列 表

srcfans.com
ProximityAlertSample
.project
ProximityAlertSample
ProximityAlertSample
.classpath
srcfans.com
VIP VIP
0.166350s