Get Network type

后端 未结 13 1032
后悔当初
后悔当初 2020-12-01 08:35

I\'ve been trying to retrive the current network type, but no success

when i say network type: i refer to know this info: if the type is: NETWORK_TYPE_IDEN

13条回答
  •  遥遥无期
    2020-12-01 09:13

    Also, add below required permission in your AndroidManifest.xml.

    Otherwise, you will face app crash while getting ConnectivityManager handle due to security exception.

提交回复
热议问题