add new BLE scan through android public API (upper than API level 21) 05/17005/5
authorjihwanseo <jihwan.seo@samsung.com>
Mon, 12 Dec 2016 11:25:38 +0000 (20:25 +0900)
committerDan Mihai <Daniel.Mihai@microsoft.com>
Wed, 15 Feb 2017 00:13:02 +0000 (00:13 +0000)
commitac5629bb713fdd7066d889bbe73ea83286c6b0dc
tree93266bc48a0d7ceac20a4f6295045aad5db2cf78
parent2e73cf5ebc1d94d0c219d95bcd972878b695c42e
add new BLE scan through android public API (upper than API level 21)

since previous scan api - startLeScan() was deprecated in API level 21.
we should use startScan(List, ScanSettings, ScanCallback).
https://developer.android.com/reference/android/bluetooth/BluetoothAdapter.html

Change-Id: Ife58de26f1b132c260b94a6d0ba5c6aa17d1e7f3
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17005
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
java/iotivity-android/src/main/java/org/iotivity/ca/CaLeClientInterface.java
resource/csdk/connectivity/src/bt_le_adapter/android/caleclient.c
resource/csdk/connectivity/src/bt_le_adapter/android/caleclient.h
resource/csdk/connectivity/src/bt_le_adapter/android/caleutils.c
resource/csdk/connectivity/src/bt_le_adapter/android/caleutils.h
resource/csdk/connectivity/src/bt_le_adapter/android/org_iotivity_ca_CaLeClientInterface.h