Hello
how can I use system services in android using Kotlin :
take a look at this :
ConnectivityManager connec = (ConnectivityManager)getSystemService(getBaseContext().CONNECTIVITY_SERVICE);
I tried this :
val connec = getSystemService(getBaseContext().CONNECTIVITY_SERVICE) as ConnectivityManager
But there’s a problem with “CONNECTIVITY_SERVICE”
what did I miss?