Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
GrepCode将 NetworkInfo 的构造函数显示为
public NetworkInfo(int type, int subtype, String typeName, String subtypeName)
但我在日食中看不到它。是否有特定的方法来实例化 NetworkInfo(如果可能的话)?
这个构造函数是隐藏的。您无法正常实例化它,但我认为您可以使用反射来使用它。
从源代码
/** * @hide */ public NetworkInfo(int type, int subtype, String typeName, String subtypeName)