Please check your API 18 for BLE support.  There is also an app called BLE 
checker.that you could try.

On Friday, September 19, 2014 12:09:16 PM UTC-4, pedr0 wrote:
>
> I am developing an application which runs on a API 18 device.
>
> This snippet of code gives me back a empty list : 
>
> public static boolean isBTMouseAttached(Context context)                 
>                                                                             
>                                                                             
>         
>     {                                                                     
>                                                                             
>                                                                             
>            
>             Log.i("Mumble", "isBTMouseAttached");                         
>                                                                             
>                                                                             
>            
>             BluetoothManager mBluetoothManager = (BluetoothManager) 
> context.getSystemService(Context.BLUETOOTH_SERVICE);                     
>                                                                             
>                     
>             for (BluetoothDevice item : mBluetoothManager.
> getConnectedDevices(BluetoothProfile.GATT))                               
>                                                                             
>                              
>             {                                                             
>                                                                             
>                                                                             
>            
>                 Log.i("Mumble", "Name : " + item.getName());             
>                                                                             
>                                                                             
>             
>                 if (deviceIsExternalMouse(item))                         
>                                                                             
>                                                                             
>             
>                         return true;                                     
>                                                                             
>                                                                             
>             
>             }                                                             
>                                                                             
>                                                                             
>            
>             return false;                                                 
>                                                                             
>                                                                             
>            
>     }  
>
> Someone has any idea about why ?
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to