Android Developer

Androrid 기기 정보 얻기

졸려질려 2022. 9. 23. 14:17
반응형

1. Device Brand

import android.os.Build

val deviceBrand = Build.BRAND

2. Device Manufacturer

import android.os.Build

val deviceManufacturer = Build.MANUFACTURER

3. Device Model Name

import android.os.Build

val deviceModel = Build.MODEL

4. Device ID

import android.provider.Settings

val deviceId = Settings.secure.getString(context.contentResolver, Settings.Secure.ANDROID_ID)

5. Android OS Version

import android.os.Build

val deviceOsVersion = Build.VERSION.RELEASE

6. Android SDK Version

import android.os.Build

val deviceSdkVersion = Build.VERSION.SDK_INT
반응형