Get Device Id Programmatically Android

[Solved] Get Device Id Programmatically Android | Swift - Code Explorer | yomemimo.com
Question : get device id programmatically android

Answered by : abdelftah-zowail

//first add this to mainfirst
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
//and this in java
TelephonyManager telephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
telephonyManager.getDeviceId();

Source : | Last Update : Sun, 13 Jun 21

Answers related to get device id programmatically android

Code Explorer Popular Question For Swift