NordicID / nur_sample_android

Nur Android Samples
MIT License
10 stars 12 forks source link

NurApiBLEAutoConnect: bindService() failed #7

Closed ChrisWoodard closed 6 years ago

ChrisWoodard commented 6 years ago

I'm just starting out with support for the EXA31 in my app, and I've followed the example app as closely as possible...

The NurDeviceListActivity.startDeviceRequest() call seems to be working as expected, and I get the appropriate onActivityResult() - NurDeviceListActivity.REQUEST_SELECT_DEVICE response (when I select my device from the list).

But, after the call to AutoConnectTransport.setAddress(nurDeviceSpec.getAddress()) I am getting the following error - E/NurApiBLEAutoConnect: bindService() failed.

Have you got any ideas / pointers to help me solve this issue?

Thanks.

ChrisWoodard commented 6 years ago

Don't panic, I've just managed to solve the problem...

I was missing the following in the manifest - <service android:name="com.nordicid.nurapi.UartService" android:enabled="true" android:exported="true" />