You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
21 lines
342 B
Java
21 lines
342 B
Java
|
|
package android.net;
|
||
|
|
|
||
|
|
public class NetworkInfo {
|
||
|
|
public enum State {
|
||
|
|
CONNECTED,
|
||
|
|
CONNECTING,
|
||
|
|
DISCONNECTED,
|
||
|
|
DISCONNECTING,
|
||
|
|
SUSPENDED,
|
||
|
|
UNKNOWN
|
||
|
|
}
|
||
|
|
|
||
|
|
public NetworkInfo.State getState() {
|
||
|
|
return State.DISCONNECTED;
|
||
|
|
}
|
||
|
|
|
||
|
|
public int getType() {
|
||
|
|
return 0x8; // where did you even get a NetworkInfo object... there is no network
|
||
|
|
}
|
||
|
|
}
|