0

I run my server bluetooth on my desktop windows and i got RuntimeException: Stub! when i launch it;

Excactly when i call: BluetoothAdapter.getDefaultAdapter() the code stop!

Anyone knows any alternative class to BluetoothAdapter for desktop bluetooth service?

  • Here is same issue and some solutions: http://stackoverflow.com/questions/5920578/bluetoothadapter-getdefault-throwing-runtimeexception-while-not-in-activity – Eugen Martynov Nov 10 '13 at 09:40

1 Answers1

1

I'm assuming you are running in the emulator: I do not believe the emulator has a working Bluetooth implementation, which is why you are getting the stub exception.

As far as I can tell there is currently no way to run the Bluetooth functionality in the emulator: you will have to use a device.

Femi
  • 64,273
  • 8
  • 118
  • 148