WifiManager::getCountryCode()

  • Thread starter Thread starter Android Central Question
  • Start date Start date
A

Android Central Question

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.
 
I moved this to the Software Development forum for more specific traffic.
 
Perhaps xda forums would be a better place to find answers to something so complex. They are developers and coders.
 

Latest posts

Trending Posts

Members online

Forum statistics

Threads
957,073
Messages
6,971,326
Members
3,163,706
Latest member
mannanqureshi