Re: [android-developers] Problem with Android 6.0 and Bluetooth

2016-09-26 Thread Sébastien Schutz
Thank for your answer ! Like that ? For Manifest file : In code : if (!getPackageManager().hasSystemFeature(PackageManager. FEATURE_BLUETOOTH_LE)) { MyToast.makeText(this, R.string.ble_not_supported, MyToast.LENGTH_LONG, Gravity.CENTER,0,0).show(); MainActivity.this.finish();

Re: [android-developers] Problem with Android 6.0 and Bluetooth

2016-09-26 Thread Sathya Sri
Hey, Did you added support for Android 6.0 . That means did you added permissions for bluetooth from manifest file as well as from code also? On Sep 26, 2016 3:32 PM, "Sébastien Schutz" wrote: > Hi, > > I'm currently developping an application which uses Bluetooth. > > I connect to two Bluetoot

[android-developers] Problem with Android 6.0 and Bluetooth

2016-09-26 Thread Sébastien Schutz
Hi, I'm currently developping an application which uses Bluetooth. I connect to two Bluetooth devices with the smartphone. I use one BluetoothGatt instance per BluetoothDevice. I was testing the application with my Samsung Galaxy A5 which is under Android 5.0.2, and it was working without any