Quyida Kotlin yordamida Android-da tarmoq mamlakatini aniqlashni qanday amalga oshirishingiz mumkinligi haqida misol keltirilgan: ``` kotlin import android.content.Context import android.telephony.TelephonyManager fun getNetworkCountry ((context: Context): String { val telephonyManager = context.getSystemService ((Context.TELEPHONY_SERVICE) as TelephonyManager return telephonyManager.networkCountryIso.toUpperCase) } ``` Ushbu kod qurilmaning telefon xizmatlari to'g'risida ma'lumot olish uchun Android tizimidagi TelephonyManager sinfidan foydalanadi. NetworkIso xususiyati amaldagi operatorning ro'yxatdan o'tgan MCC (Mobile Country Code) ning mamlakat kodini qaytaradi. Iltimos, bu kod faqat uya
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence