如何监听来自多个供应商的位置更新? [英] How to listen for location updates from multiple providers?

查看:110
本文介绍了如何监听来自多个供应商的位置更新?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在此code我请求GPS位置更新

In this code I request location updates from GPS

locMan.requestLocationUpdates(LocationManager.GPS_PROVIDER,20000, 1, gpsListener);

但我怎么能确定它监听WiFi或手机ID更新呢?

But how can I make sure it listens for Wifi or Cell ID updates too?

推荐答案

您应该能够调用 requestLocationUpdates(),具有鲜明的 LocationListener的对象,其他的供应商。

You should be able to call requestLocationUpdates(), with distinct LocationListener objects, for the other providers.

这篇关于如何监听来自多个供应商的位置更新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆