Get Network type

Posted by Moshik on Stack Overflow See other posts from Stack Overflow or by Moshik
Published on 2010-05-27T08:05:22Z Indexed on 2010/05/27 8:11 UTC
Read the original article Hit count: 131

Filed under:
|

hello,

ive 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..

any other suggestions will be welcome,

thanks!

© Stack Overflow or respective owner

Related posts about android

Related posts about android-sdk