如何检测机器人塔的变化? [英] How to detect tower changes in Android?

查看:154
本文介绍了如何检测机器人塔的变化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是想知道是否有可能获得在Android的手机信号塔的变化?

Just wanted to know whether it's possible to get cell tower changes in Android?

我已经看到了 PhoneStateListener 名为 onCellLocationChanged 的事件。

I have seen an event called onCellLocationChanged in PhoneStateListener.

我可以用这个来检测手机信号塔的变化?

Can I use this to detect cell tower changes ?

推荐答案

这是正确的方法。如果你是在一个新的电池它总是被调用。看到这里的文档:

This is the correct method. It is always called if you are in a new cell. See the documentation here:

<一个href="http://developer.android.com/reference/android/telephony/PhoneStateListener.html#onCellLocationChanged(android.telephony.CellLocation">http://developer.android.com/reference/android/telephony/PhoneStateListener.html#onCellLocationChanged(android.telephony.CellLocation)

这篇关于如何检测机器人塔的变化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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