More values for GetNetworkType

Inman

Well-Known Member
Licensed User
Longtime User
In the documentation it is given that GetNetworkType returns the currently used cellular network type and that the possible values are 1xRTT, CDMA, EDGE, EVDO_0, EVDO_A, EVDO_B, GPRS, HSDPA,HSPA, HSUPA, IDEN, UMTS, UNKNOWN.

I was looking for ways to detect a LTE and HSPA+ networks and I saw this on the official documentation for Android TelephonyManager

B4X:
Returns a constant indicating the radio technology (network type) currently in use on the device for data transmission.

    NETWORK_TYPE_UNKNOWN
    NETWORK_TYPE_GPRS
    NETWORK_TYPE_EDGE
    NETWORK_TYPE_UMTS
    NETWORK_TYPE_HSDPA
    NETWORK_TYPE_HSUPA
    NETWORK_TYPE_HSPA
    NETWORK_TYPE_CDMA
    NETWORK_TYPE_EVDO_0
    NETWORK_TYPE_EVDO_A
    NETWORK_TYPE_EVDO_B
    NETWORK_TYPE_1xRTT
    NETWORK_TYPE_IDEN
    NETWORK_TYPE_LTE
    NETWORK_TYPE_EHRPD
    NETWORK_TYPE_HSPAP

Looks like official documentation has some more value for GetNetworkType, including HSPAP (which is HSPA+) and LTE as well. Does B4A's GetNetworkType currently return these new values as well? If yes, could you please update the B4A documentation to include the exact return values of currently missing network types?

I would love to find the values myself but unfortunately we don't have HSPA+ network here.
 

Inman

Well-Known Member
Licensed User
Longtime User
Cool.

Is the updated Phone library available for download, for using with older B4A versions? Sorry I have to trouble you but couple of my users are on AT&T's HSPA+ network and they are complaining about the app not detecting it correctly.
 
Upvote 0

Inman

Well-Known Member
Licensed User
Longtime User
Wow! That was fast. When you said I should contact after the release I was assuming it is going to be next week. Thanks for the nice surprise.

By the way, please update the B4A documentation to include the possible values of the new return constants like NETWORK_TYPE_HSPAP, NETWORK_TYPE_LTE etc..

EDIT

I just got the mail, installed the new version and I now see that you updated the syntax tooltips in the IDE. Thanks again.
 
Last edited:
Upvote 0
Top