BTApp
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   sami_alibi
Posted On:   Monday, November 1, 2010 05:00 AM

… import javax.bluetooth.DiscoveryListener; … public class BTApp implements Runnable, DiscoveryListener { … private Vector devices = new Vector(); … /* in some method, a Bluetooth inquiry is started */ discoveryAgent.startInquiry(DiscoveryAgent.GIAC, this); … public void deviceDiscovered(RemoteDevice btDevice, DeviceClass cod) { // same device may found several times during single search if (devices.indexOf(btDevice) == -1) { devices.addElement(btDevice); } } … } Based on only the code fragments above, what BTApp would likely be doing when it executes and starts to discover other Bluetooth devices.    More>>

…
import javax.bluetooth.DiscoveryListener;
…
public class BTApp implements Runnable, DiscoveryListener {
…
private Vector devices = new Vector();
…
/* in some method, a Bluetooth inquiry is started */
discoveryAgent.startInquiry(DiscoveryAgent.GIAC, this);
…
public void deviceDiscovered(RemoteDevice btDevice, DeviceClass cod) {
// same device may found several times during single search if (devices.indexOf(btDevice) == -1) {
devices.addElement(btDevice);
}
}
…
}

Based on only the code fragments above, what BTApp would likely be doing when it executes and starts to discover other Bluetooth devices.

   <<Less
About | Sitemap | Contact