1. Android Central Question's Avatar
    i'm trying to getCountryCode() on a WifiManager insance, i.e.

    WifiManager wifiManager = (WifiManager) getSystemService (Context.WIFI_SERVICE);
    wifiManager.getCountryCode();​

    Although I set compileSdkVersion to 29 the compiler cannot find getCountryCode().

    error: cannot find symbol
    wifiManager.getCountryCode();
    ^
    symbol: method getCountryCode()
    location: variable wifiManager of type WifiManager​

    This symbol should be accessible, as stated here
    java/android/net/wifi/WifiManager.java#1723 (android source)

    Does anyone of you know, why the compiler cannot resolve getCountryCode()?
    Btw: setCountryCode() can't be found either whereas getConnectionInfo() can be resolved and used.
    04-05-2021 07:15 AM
  2. mustang7757's Avatar
    Sorry can you explain little more?

    I'll leave a Link to register so you can communicate here as a guest account you can only post questions but can't reply.
    https://forums.androidcentral.com/sh...d.php?t=409154
    04-05-2021 10:09 AM
  3. B. Diddy's Avatar
    I moved this to the Software Development forum for more specific traffic.
    04-05-2021 12:28 PM
  4. Kizzy Catwoman's Avatar
    Perhaps xda forums would be a better place to find answers to something so complex. They are developers and coders.
    04-05-2021 02:35 PM
LINK TO POST COPIED TO CLIPBOARD