简体   繁体   English

什么移动网络类型允许在通话期间的http流量?

[英]What mobile network types allow http traffic during phone calls?

Would this Android code be a correct way to test for http network availability during a phone call, or does it exclude networks that should be included or vice versa: 此Android代码是否是在电话呼叫期间测试http网络可用性的正确方法,还是排除应包含的网络,反之亦然:

public boolean isOnline() {
    TelephonyManager tm = (TelephonyManager)
              getSystemService(Context.TELEPHONY_SERVICE);

    if (tm.getNetworkType() > TelephonyManager.NETWORK_TYPE_EDGE)
        return true;
    return false;
}

Any GSM network allows network access while using the phone network. 任何GSM网络都允许在使用电话网络时进行网络访问。 CDMA networks do not allow this. CDMA网络不允许这样做。 But if memory serves me correctly, when Verizon moves to LTE you should be able to network access even while on the phone. 但如果内存正确地为我服务,当Verizon转向LTE时,即使在手机上也应该能够进行网络访问。 This is because they will probably use CDMA for the voice network and use LTE for data. 这是因为他们可能会将CDMA用于语音网络并将LTE用于数据。 Sprint uses WiMax for their 4G, but I do not know if they are using CDMA still for voice and using WiMax for data. Sprint使用WiMax作为他们的4G,但我不知道他们是否仍在使用CDMA语音和使用WiMax进行数据。

The reason GSM networks can use the data network while on the phone is because they use 2 different "networks" for both. GSM网络可以在电话上使用数据网络的原因是因为它们为两者使用2个不同的“网络”。 GSM is actually the voice data and UMTS/HSPA is for web data. GSM实际上是语音数据,UMTS / HSPA是用于Web数据。 HSPA+ for t-mobiles "4G", which is just basically upgrades to their HSPA network. HSPA +适用于T-mobiles“4G”,它基本上是升级到他们的HSPA网络。

Also any of the carriers will have access to a data network if they are connected to WiFi while on the phone. 如果在电话上连接到WiFi,任何运营商也可以访问数据网络。

So to really answer your question, you first need to know the voice/data network type, then you need to account for wifi, but also if they are connected to LTE, WiMax, UMTS/HSPA, or CDMA. 因此,要真正回答您的问题,您首先需要了解语音/数据网络类型,然后您需要考虑wifi,但是如果它们连接到LTE,WiMax,UMTS / HSPA或CDMA。

If they are connected to CDMA only, then there is no data network available while on the phone. 如果它们仅连接到CDMA,则在电话上没有可用的数据网络。 But if they are on CDMA + LTE, CDMA + WiMax, CDMA + WiFi then yes they have data. 但如果他们使用的是CDMA + LTE,CDMA + WiMax,CDMA + WiFi,那么他们就拥有数据。 If it is a GSM voice network, then they have data network. 如果是GSM语音网络,那么他们就拥有数据网络。

Even after you determine that, you should also keep in mind that the data network may not be available at all for one reason or another. 即使您确定了这一点,您也应该记住,由于某种原因,数据网络可能根本不可用。

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

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