3

如果我们有一个应用程序,我们会在手机中安装应用程序,当任何设备使用蓝牙连接时,我们将获得手机详细信息,如蓝牙地址、IMEI?

任何人都可以帮助我吗?

4

1 回答 1

0

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:

http://luugiathuy.com/2011/02/android-java-bluetooth/

于 2012-10-01T11:26:19.810 回答