简体   繁体   English

互联网服务提供商定位器

[英]Internet service provider locator

Is there any function that can get your Internet service provider information? 有没有可以获取您的Internet服务提供商信息的功能?

In other words, when you're connected to Wi-Fi at any place or even 3G; 换句话说,当您在任何地方甚至3G连接到Wi-Fi时; can you get the ISP of the network you're connected to (example IDM, terranet, cyberia etc..) via a function (i goggled NETWORK_PROVIDER but can it do this). 您能否通过功能(我窥探到NETWORK_PROVIDER,但是可以做到这一点)来获取所连接网络的ISP(例如IDM,terranet,cyberia等)。

My Plan B was to trace every provider in my country and analyze results; 我的计划B是追踪我所在国家的每个提供商并分析结果; but if there's a function that can get such info's that would be helpful. 但是如果有一个可以获取此类信息的函数将很有帮助。

See TelephonyManager class for this purpose. 为此,请参阅TelephonyManager类。 This class Provides access to information about the telephony services on the device. 此类提供对有关设备上电话服务信息的访问。 Applications can use the methods in this class to determine telephony services and states, as well as to access some types of subscriber information. 应用程序可以使用此类中的方法确定电话服务和状态,以及访问某些类型的订户信息。 Applications can also register a listener to receive notification of telephony state changes. 应用程序还可以注册一个侦听器,以接收电话状态更改的通知。

Developers Android Site 开发者Android网站

This methods are of your use 这种方法有用吗

public String getNetworkOperatorName ()
public String getSimOperatorName ()

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM