04-30-2012 08:31 PM - edited 04-30-2012 08:57 PM
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.