You Are Here:

Community: Developer Discussion Boards

#1 Old How do we send a business card via bluetooth? - 2006-04-20, 00:02

Join Date: Apr 2006
Posts: 10
ramita
Offline
Registered User
Can anyone send me the code in Java to send a business card via Bluetooth?
Or please at least tell me what event is generated when a business card is sent?

Thanks
Reply With Quote

#2 Old Re: How do we send a business card via bluetooth? - 2006-04-25, 20:28

Join Date: Dec 2005
Posts: 10
jlressia's Avatar
jlressia
Offline
Registered User
To do it, you need use OBEX Object Push service. in order to do it you must make a search of devices, to see if such they offer the OBEX service and then make the connection to transfer the vcard. The javax.obex's API helps you with this issue.

Regards!
Reply With Quote

#3 Old Re: How do we send a business card via bluetooth? - 2006-05-06, 12:37

Join Date: Apr 2006
Posts: 10
ramita
Offline
Registered User
I wana know wen i send a Obex Headerset to send a vCard,what will be its TYPE and DATA part? Is there a special format for a vCard? if yes, what's that?

Thanks!
Reply With Quote

#4 Old Smile Re: How do we send a business card via bluetooth? - 2006-05-11, 21:06

Join Date: Dec 2005
Posts: 10
jlressia's Avatar
jlressia
Offline
Registered User
You must set the headerset's type to:
...
Operation op = null;
hdr = cs.createHeaderSet(); //cs is javax.obex.ClientSession
hdr.setHeader(HeaderSet.TYPE, "binary");
hdr.setHeader(HeaderSet.TYPE, "text/v-card");
op = cs.put(hdr);
...
After, to send the DATA you must open an Outputstream and "write" in it, you must implement something like this:

OutputStream out = null;
out = op.openOutputStream();
out.write("***This is te text for the V-Card***".getBytes());
out.close();

regards,
Kabuby
Reply With Quote

#5 Old Re: How do we send a business card via bluetooth? - 2006-05-12, 22:50

Join Date: Apr 2006
Posts: 10
ramita
Offline
Registered User
Thank you so much!
This is surely what I needed! I think I can progress now.......Thanks a lot!
Reply With Quote

#6 Old Re: How do we send a business card via bluetooth? - 2009-02-20, 14:33

Join Date: Mar 2003
Posts: 2
newbie123
Offline
Registered User
Quote:
Originally Posted by ramita View Post
Thank you so much!
This is surely what I needed! I think I can progress now.......Thanks a lot!
Ramita,

I new to this could send me a copy of the code on How to send a business card (vcard) via bluetooth. As I need to send vcard automatically to all bluetooth device found on my phone. thanks.
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
Problem MMC+USB Connection Fede81 General Symbian C++ 1 2007-06-14 07:13
Business Card / Contact Entry ryanrst Symbian Tools & SDKs 0 2005-05-01 17:21
Suitable Bluetooth Card to use with Series 60 SDK(2.0) for Symbian OS nuwan14d Bluetooth Technology 5 2004-01-28 08:19
Bluetooth Connectivity Problem: 8910, 3COM Bluetooth Wireless PC Card ellistai PC Suite API and PC Connectivity SDK 3 2003-02-20 13:08
7650 Emulator with Brainboxes Bluetooth card jamespinakis Bluetooth Technology 1 2002-08-07 08:34

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