You Are Here:

Community: Developer Discussion Boards

#1 Old Unhappy How to detect the bluetooth connect? - 2005-10-11, 11:50

Join Date: Mar 2005
Posts: 6
baker75
Offline
Registered User
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!
Reply With Quote

#2 Old Re: How to detect the bluetooth connect? - 2005-10-28, 21:47

Join Date: Apr 2004
Posts: 6
farasnf@yahoo.com
Offline
Registered User
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
Reply With Quote

#3 Old Re: How to detect the bluetooth connect? - 2005-11-02, 02:12

Join Date: Mar 2005
Posts: 6
baker75
Offline
Registered User
Thanks, but my platform is Series 60 SDK C++.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia