2

I want to import NetworkUtils. Following command does not work.

 import android.net.NetworkUtils;

Other classes like WifiInfo can be imported.

Somewhere, I found it answered that NetworkUtils was not part of Android SDK and so, an SDK project cannot perform the import.

But is there a way to import android.net.NetworkUtils?

4

1 回答 1

2

The class is not part of the SDK, this may be improved in future SDK releases : https://groups.google.com/forum/?fromgroups#!topic/android-developers/9Ux2zCqCMOA

于 2013-05-08T07:45:29.273 回答