Android-da tarmoq mamlakatini aniqlashni amalga oshirish uchun bir nechta turli xil yondashuvlar mavjud, ammo eng soddalaridan biri TelephonyManager sinfidan foydalanishdir 1. Birinchidan, siz AndroidManifest.xml faylingizga quyidagi ruxsatni kiritishingiz kerak: ``` <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="android.permission.READ_PHONE_STATE"/> ``` ` 2. Keyin siz Kotlin kodingizdagi TelephonyManager instansiyasini olishingiz mumkin: ``linkot telephonyManager val = getSystemServiceContext.TELHONY_SVICE) TelephonyManager val = getSystemServiceContext.TELHONY
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence