javax.bluetooth.BluetoothStateException

Property bluecove.android.context MUST be correctly set before initializing the stack. Call BlueCoveImpl.setConfigObject(BluecoveConfigProperties.PROPERTY_ANDROID_CONTEXT, <a reference to a context>) before calling LocalDevice.getLocalDevice()

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web137

  • via Unknown by Ivan Lukic,
  • via Stack Overflow by Ranveer
    ,
  • via Stack Overflow by ensantos91
    ,
  • Stack trace

    • javax.bluetooth.BluetoothStateException: Property bluecove.android.context MUST be correctly set before initializing the stack. Call BlueCoveImpl.setConfigObject(BluecoveConfigProperties.PROPERTY_ANDROID_CONTEXT, <a reference to a context>) before calling LocalDevice.getLocalDevice() at com.intel.bluetooth.BluetoothStackAndroid.initialize(BluetoothStackAndroid.java:113) at com.intel.bluetooth.BlueCoveImpl.setBluetoothStack(BlueCoveImpl.java:1014) at com.intel.bluetooth.BlueCoveImpl.detectStack(BlueCoveImpl.java:518) at com.intel.bluetooth.BlueCoveImpl.access$500(BlueCoveImpl.java:70) at com.intel.bluetooth.BlueCoveImpl$1.run(BlueCoveImpl.java:1085) at java.security.AccessController.doPrivileged(AccessController.java:182) at com.intel.bluetooth.BlueCoveImpl.detectStackPrivileged(BlueCoveImpl.java:1083) at com.intel.bluetooth.BlueCoveImpl.getBluetoothStack(BlueCoveImpl.java:1076) at javax.bluetooth.LocalDevice.getLocalDeviceInstance(LocalDevice.java:75) at javax.bluetooth.LocalDevice.getLocalDevice(LocalDevice.java:95) at de.is04.telemedic.connector.connectionmanager.BluecoveOBEXBTManager.connect(BluecoveOBEXBTManager.java:47)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,