Skip to content

Instantly share code, notes, and snippets.

@4xes
Created March 19, 2018 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 4xes/8e778afcebcdd8b8fd6c6761645313ac to your computer and use it in GitHub Desktop.
Save 4xes/8e778afcebcdd8b8fd6c6761645313ac to your computer and use it in GitHub Desktop.
print ids
printIds()
}
@SuppressLint("HardwareIds")
private fun printIds() {
Log.d("DeviceId", Settings.Secure.getString(contentResolver, Settings.Secure.ANDROID_ID))
Thread(Runnable {
Log.d("Advert", AdvertisingIdClient.getAdvertisingIdInfo(this)?.id)
}).start()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment