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
or NETWORK_TYPE_UMTS
.. and so on..
i tried to use:
NetworkInfo activeNetInfo = connectivityManager.getActiveNetworkInfo();
or
NetworkInfo mobNetInfo = connectivityManager.getNetworkInfo
(ConnectivityManager.TYPE_MOBILE);
but no success..
i am doing this coz i wanna know if the current network is IDEN, or if the current network is connected through wifi..
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…