Getting Error When i am executing the code

I am getting following error . as when i click on Distance demo

11-04 15:19:35.790: E/AndroidRuntime(16194): FATAL EXCEPTION: main
11-04 15:19:35.790: E/AndroidRuntime(16194): Process: com.kk.beaconestimotepoc, PID: 16194
11-04 15:19:35.790: E/AndroidRuntime(16194): java.lang.IllegalArgumentException: This cannot be run on UI thread, starting BLE scan can be expensive
11-04 15:19:35.790: E/AndroidRuntime(16194): at com.estimote.sdk.internal.Preconditions.checkArgument(Preconditions.java:65)
11-04 15:19:35.790: E/AndroidRuntime(16194): at com.estimote.sdk.service.BeaconService.checkNotOnUiThread(BeaconService.java:529)
11-04 15:19:35.790: E/AndroidRuntime(16194): at com.estimote.sdk.service.BeaconService.access$600(BeaconService.java:62)
11-04 15:19:35.790: E/AndroidRuntime(16194): at com.estimote.sdk.service.BeaconService$InternalLeScanCallback.onLeScan(BeaconService.java:517)
11-04 15:19:35.790: E/AndroidRuntime(16194): at android.bluetooth.BluetoothAdapter$2.onScanResult(BluetoothAdapter.java:1703)
11-04 15:19:35.790: E/AndroidRuntime(16194): at android.bluetooth.le.BluetoothLeScanner$BleScanCallbackWrapper$1.run(BluetoothLeScanner.java:330)
11-04 15:19:35.790: E/AndroidRuntime(16194): at android.os.Handler.handleCallback(Handler.java:739)
11-04 15:19:35.790: E/AndroidRuntime(16194): at android.os.Handler.dispatchMessage(Handler.java:95)
11-04 15:19:35.790: E/AndroidRuntime(16194): at android.os.Looper.loop(Looper.java:135)
11-04 15:19:35.790: E/AndroidRuntime(16194): at android.app.ActivityThread.main(ActivityThread.java:5221)
11-04 15:19:35.790: E/AndroidRuntime(16194): at java.lang.reflect.Method.invoke(Native Method)
11-04 15:19:35.790: E/AndroidRuntime(16194): at java.lang.reflect.Method.invoke(Method.java:372)
11-04 15:19:35.790: E/AndroidRuntime(16194): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
11-04 15:19:35.790: E/AndroidRuntime(16194): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)

Are you on Android 5.0 by any chance? There seems to be some issue with our Android SDK and Android 5.0 at the moment:

https://github.com/Estimote/Android-SDK/issues/85

We're working on investigating this further and addressing the problem if needed.