<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>can not find BLE device under Android 6.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15916/can-not-find-ble-device-under-android-6-0</link><description>ElfApp.zip This attached application is based on Nrf_uart demo app. 
 It works fine under Android 5.0 and 4.4 smartphone. When I click the connect button, it shows the info of an BLE device, but under Android 6.0, it continuously scans and cannot find</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Aug 2016 23:18:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15916/can-not-find-ble-device-under-android-6-0" /><item><title>RE: can not find BLE device under Android 6.0</title><link>https://devzone.nordicsemi.com/thread/60728?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2016 23:18:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:383d1262-4cf7-4c0e-a918-db5620eca6b9</guid><dc:creator>shalongbasi1</dc:creator><description>&lt;p&gt;Thanks for helping me tested on your Android 6.0. After the research, I found I missed the step &amp;quot;sync gradle&amp;quot; after changing the target SDK version.  Now the program works on my MotoG android 6.0 too. :D. thanks for help again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can not find BLE device under Android 6.0</title><link>https://devzone.nordicsemi.com/thread/60726?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2016 10:18:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87137cd8-01a4-472d-a4e2-e53f79a6ef37</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@shalong: I assume you were testing with other app ? With the app you provided in the zip file it worked fine after the modification (target SDK v18) on my S6 Android 6.0.1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can not find BLE device under Android 6.0</title><link>https://devzone.nordicsemi.com/thread/60725?ContentTypeID=1</link><pubDate>Tue, 23 Aug 2016 22:59:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bf17ed9-ff3b-4d5a-bc84-7ca0f82a5fe0</guid><dc:creator>shalongbasi1</dc:creator><description>&lt;p&gt;thanks, I tried to change target to 18, but then it causes lots of GUI stuff cannot to be compiled. I will try to see what I can do with the permission.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can not find BLE device under Android 6.0</title><link>https://devzone.nordicsemi.com/thread/60727?ContentTypeID=1</link><pubDate>Tue, 23 Aug 2016 12:33:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75fcb032-ccc7-4685-b616-adcffc08af44</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Despite adding FINE_LOCATION or COARSE_LOCATION permission to the manifest you need to implement requesting them in the app and handing situation when user did not grant it. It&amp;#39;s explained in the second link.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can not find BLE device under Android 6.0</title><link>https://devzone.nordicsemi.com/thread/60724?ContentTypeID=1</link><pubDate>Tue, 23 Aug 2016 11:52:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2f3ffe6-dc26-4a2b-81ea-4eacf75e2307</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Shalong,&lt;/p&gt;
&lt;p&gt;According to &lt;a href="https://developer.android.com/reference/android/bluetooth/le/BluetoothLeScanner.html"&gt;this&lt;/a&gt; and &lt;a href="https://developer.android.com/training/permissions/requesting.html"&gt;this&lt;/a&gt;, if you target at SDK 23 or higher, you would need to request permission if the app needed. And as in the link, the permission to do BLE scanning is location.&lt;/p&gt;
&lt;p&gt;So the solution is either change your SDK target in the build.gradle to lower than 23 (in NRF UART v2.0 it&amp;#39;s 18) or you need to add location permission in your app (in the ..manifest.xml)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>