Reprinted from: http://blog.csdn.net/liuming_nx/article/details/49448599
Discovery: Using Bluetooth Protocol 2.0 app, search for no Bluetooth device, use ble normal.
Baidu, Google, found that others have encountered the same problem.
Finally looked up the information, engaged in a morning, finally found the answer: Link: https://developer.android.com/about/versions/marshmallow/android-6.0-changes.html
android6.0 updated the permissions model.
Add a permission statement to the original app's Androidmanifest.xml. The pro-test is effective.
PS: or to see the official documents, most of the other articles are not reliable.
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
Android Bluetoothadapter Unable to search for Bluetooth issues