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)