Welcome!

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

Reply
Developer
Posts: 224
Registered: ‎03-29-2012
My Device: 9900

Bluetooth getfriendlyname issue

I was wondering if anyone has experience with this problem, if a device is detected via the bluetooth search, but then  goes out of range when the getfriendlyname is called later on, it lags and then assigns the name as null. Does anyone know how to avoid this problem? I don't know if it is possible to cancel the getfriendlyname if it is running, or interrupting the background thread it would be running in, can a background thread be cancelled from execution? I have looked this up but gotten mixed signals.