| Reply | « Previous Thread | Next Thread » |
|
Dear guys,
When the mobile phone to connect a remote bluetooth device, i want use my application(run background) to dectect this connect. if connect success, i can get the remote bluetooth device's address. How can i to do ? I hope somebody can help me. Thanks! |
|
public void discover() {
try{ // retrieve the local Bluetooth device object LocalDevice local = LocalDevice.getLocalDevice(); // retrieve the Bluetooth address of the local device String address = local.getBluetoothAddress(); // retrieve the name of the local Bluetooth device String name = local.getFriendlyName(); helloStringItem.setText(name); } catch (BluetoothStateException e){String bsc_fnd="Hit Exception";} } The above will doscover local device use the RemoteDevice class to get remote device info |
| farasnf@yahoo.com |
| View Public Profile |
| Find all posts by farasnf@yahoo.com |
|
Thanks, but my platform is Series 60 SDK C++.
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Can't connect Nokia 6600 with PC Suite 6 via Bluetooth | imfreqy | General Discussion | 5 | 2005-09-11 09:45 |
| How to get a device's bluetooth address before I connect to it. | doglovecat527 | Symbian Networking & Messaging | 0 | 2005-09-02 08:50 |
| HELP : how to connect a midlet to pc via bluetooth on 6600 | pons@ifrance.com | Bluetooth Technology | 0 | 2004-05-13 17:20 |
| Nokia 7650 support Bluetooth audo? | ovjo12 | Bluetooth Technology | 5 | 2003-07-17 19:50 |
| Why bluetooth on Nokia 7650??, if you can't connect to any deveices???? | ovjo12 | Bluetooth Technology | 4 | 2002-12-24 11:35 |