如果我们有一个应用程序,我们会在手机中安装应用程序,当任何设备使用蓝牙连接时,我们将获得手机详细信息,如蓝牙地址、IMEI?
任何人都可以帮助我吗?
whnever you connected with two devices using bluetooth than get the IMEI number of device with the following code:
TelephonyManager telephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
telephonyManager.getDeviceId();
and also you need permission in android manifest file :
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
and also check the link for bluetooth example: