This project was fork from https://git.ti.com/sensortag-20-android which is the last open source version of the SensorTag Android application for BLE provided by Texas Instruments. Due to licensing restrictions Texas Instruments was no longer able to keep the open source code in sync with the SensorTag app in Google Play (see legend on https://git.ti.com/sensortag-20-android ).
The version on this repository is working with Android Studio 3.1.2 and Android SDK 27. Bugs etc are everywhere. The cloud connection may be not work (not tested yet!).
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
Android 8.1 needs for BLE location permission. Thus, the following functions were added/modified in
public void onCreate(Bundle savedInstanceState)
public void onRequestPermissionsResult(int requestCode, String permissions, int grantResults)
in the file
MainActivity.java the following function and callback were modified for compatibility:
private boolean scanLeDevice(boolean enable)
private ScanCallback mLeScanCallback = new ScanCallback()
boolean checkDeviceFilter(String deviceAddr)
in the file