Skip to content

Instantly share code, notes, and snippets.

@WrathChaos
Last active March 26, 2022 18:25
Show Gist options
  • Save WrathChaos/85999955d2ed115ce799225bc50f935a to your computer and use it in GitHub Desktop.
Save WrathChaos/85999955d2ed115ce799225bc50f935a to your computer and use it in GitHub Desktop.
Android Kotlin: How to get unique device id?
val deviceID = Settings.Secure.getString(contentResolver,
Settings.Secure.ANDROID_ID)
@subhankar2028
Copy link

After including this part to my project, when I try to import by entering alt+enter I get 8 options of setting. Which one to be import?

@WrathChaos
Copy link
Author

After including this part to my project, when I try to import by entering alt+enter I get 8 options of setting. Which one to be imported?

Can you provide me with the screenshot?

@binarynoise
Copy link

After including this part to my project, when I try to import by entering alt+enter I get 8 options of setting. Which one to be import?

android.provider.Settings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment