jQuery in Action, 2nd edition*
The moose likes Java Micro Edition and the fly likes how to continiously search for bluetooth devices? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "how to continiously search for bluetooth devices?" Watch "how to continiously search for bluetooth devices?" New topic
Author

how to continiously search for bluetooth devices?

Zandis Murāns
Ranch Hand

Joined: Aug 18, 2009
Posts: 174

The main idea is to startInqury() and in the inquryCompleted() do startInqury() again. In practic - if I do so, I am getting BluetoothStateException "The previous device discovery is running". Why does this happens? By logic - in inquryCompleted() that device discovery should be ended, true? How do I check if discovery is still active or not? JSR082 API docs ir very poor with information.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: how to continiously search for bluetooth devices?