Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 224
Registered: ‎03-29-2012
My Device: 9900
My Carrier: Wind

Bluetooth search doesnt wait for inquirycompleted

[ Edited ]

I have a button which triggers a thread for a bluetooth device inquiry, if I click the button it works, pushes a waiting screen, and when the inquiry is completed, pops the screen which when onExposed, generates the new data. However, when i immediately click the button again, the waiting screen pops up for a fraction of a second, and no new data is loaded as if it never went through the inquiry. If i try repeatedly, it does work but consistency is very important and I was wondering if anyone has encountered an issue or could provide a resource to address this or a similar problem? I use a synchronized lock.wait/notify to allow the inquirycompleted to finish.