How can I get the serial number at API level 3?
TelephonyManager manager = (TelephonyManager) yourActivity.getSystemService(Context.TELEPHONY_SERVICE); String uid = manager.getDeviceId();
This works from API level 1.
Depending on what you want to do, there are several options:
reading Settings.Secure.ANDROID_ID . "This is the 64-bit amount that is generated and saved the first time the device boots up."
using TelephonyManager.getDeviceId () But it does not work on all devices.
More on the topic: http://android-developers.blogspot.com/2011/03/identifying-app-installations.html
Source: https://habr.com/ru/post/1346523/More articles:How to resize image using imagemagick? - c #How to compress jpg image? - c #What is the best IPC method for interacting inside a machine in Win32? - c ++Neutral / sleeping discriminator in a subclass - hibernatepg_dump 9.0 to pg_restore 8.3 - postgresqlAre some enterprise library application blocks obsolete? - authenticationBookmarks API in Firefox - javascriptHow to initialize an array of structure in C? - cThe shortest way INSIDE a polygonal algorithm / pseudo-code - algorithmChecking the success of payments in PayPal - paypalAll Articles