| Reply | « Previous Thread | Next Thread » |
|
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 |
|
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! |
|
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! |
|
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 |
|
Thank you so much!
This is surely what I needed! I think I can progress now.......Thanks a lot! ![]() |
|
Quote:
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 | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| 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 |