You Are Here:

Community: Developer Discussion Boards

#1 Old Service discovery inconsistency problem - 2004-02-09, 09:47

Join Date: Nov 2003
Posts: 16
tserivdd
Offline
Registered User
Hi!

I'm developing an application for Nokia 6600 which uses bluetooth to communicate. I have no problem regarding device discovery. However sometimes during service discovery, there are no services detected and so i cannot continue to exchange of info. For testing, i am using 1 6600(comm'l release) and 1 6600 prototype. I'm really not sure if the problem is caused by the code or the prototype phone. Can anybody point out? thanks!

btw, here is my code for service discovery:

public void discoverServices(int index) {

this.displayText("Discover services... please Wait");
try {
int[] attrb = {0x0100};

this.displayText("Getting services of " +
( (RemoteDevice) devices.elementAt(index)).getBluetoothAddress());
agent.searchServices(attrb, new UUID[] {uuid},
(RemoteDevice) devices.elementAt(index),
servListener);
}
catch (Exception e) {
e.printStackTrace();
}
}// end of discoverServices
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

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