【问题标题】:How is a boolean extra added with LocationManager.KEY_PROXIMITY_ENTERING in the addProximityAlert method?如何在 addProximityAlert 方法中使用 LocationManager.KEY_PROXIMITY_ENTERING 添加布尔值?
【发布时间】:2014-04-26 03:52:17
【问题描述】:

LocationManager 类中,方法addProximityAlert 有一个PendingIntent 参数,我不知道如何正确实现。

我知道前两个参数是纬度和经度,第三个是半径,第四个是警报的到期计时器。但我很困惑如何处理 PendingIntent 或者它如何适合这里.

有人可以在 addProximityAlert 方法的上下文中给我一个如何正确实现 PendingIntent 的示例吗?

【问题讨论】:

    标签: java android


    【解决方案1】:

    该方法甚至不需要 PendingIntent,只需使用 Intent 就可以了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-09-05
      • 2018-01-02
      • 2021-04-08
      • 1970-01-01
      • 1970-01-01
      • 2021-07-03
      • 2016-01-26
      • 1970-01-01
      相关资源
      最近更新 更多