Hi all,

I'm trying to get network information using some piece of code like
this:

ConnectivityManager cm =
ConnectivityManager)mActivity.getSystemService
(mActivity.CONNECTIVITY_SERVICE);
NetworkInfo netinfo = cm.getActiveNetworkInfo();

But, as reported here,
http://groups.google.com/group/android-developers/browse_thread/thread/b013d51d1fa52b25/508adcb5281bb778?lnk=gst&q=networkinfo#508adcb5281bb778
I'm not able to get the information I need.
Actually, what I need is the port number or any other unique
identifier to distinguish between different instances of the emulator.
Is there another way to do it instead of using the ConnectivityManager/
NetworkInfo?

Thanks a lot for any help

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to