List of usage examples for android.net.wifi ScanResult getClass
@HotSpotIntrinsicCandidate public final native Class<?> getClass();
From source file:com.vrem.wifianalyzer.wifi.scanner.Transformer.java
private WiFiWidth getWiFiWidth(ScanResult scanResult) { try {/* w w w .j av a2 s . c o m*/ return WiFiWidth .find((int) scanResult.getClass().getDeclaredField(Fields.channelWidth.name()).get(scanResult)); } catch (Exception e) { // Not APK 23+ can not convert return WiFiWidth.MHZ_20; } }