How do I find the serial number for my Android device?

Asked 2 years ago, Updated 2 years ago, 22 views

A unique ID value is required for the Android app. I think the serial number of the Android device will be fine. How can I get the serial number of my device within the app?

android serial-number

2022-09-21 23:10

1 Answers

TelephonyManager tManager = (TelephonyManager)myActivity.getSystemService(Context.TELEPHONY_SERVICE);
String uid = tManager.getDeviceId();

getSystemService is the method included in the Activity class. The getDeviceID() method will return a different MDN or MEID value depending on which radio the instrument uses (GSM or CDMA).

Each device must return a unique value (assuming that the device is a phone). If you have an Android device with Sim slot or CDMA radio, the above method will definitely work. If it's an Android device that powers on with Microwave, you have to solve it yourself.


2022-09-21 23:10

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.