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
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
Event + Sent? You mean which event is called, when a vCard is received. There is no such event.
That stuff is implemented in the native device by the manufacturers (therefore there isnt a quick fix implemented in J2ME).
But you can send SMS' in J2ME, and maybe there is a special format for business cards (i'm not too sure)
so can i assume that TYPE field in the headerset of the Obex packet sent is "vCard" ??
also, whts the exact format of the vCard(the DATA header in the Headerset)??
Hi ramita,
What device is yours? AFAIK JSR-82 OBEX is not available in all Nokia devices supporting BT, just newer ones (S60 2nd Edtion FP3, S60 3rd Edition, S40 3rd Edition).
so can i assume that TYPE field in the headerset of the Obex packet sent is "vCard" ??
As you may know you can set it explicitly - use the setHeader method of HeaderSet interface.
also, whts the exact format of the vCard(the DATA header in the Headerset)??
AFAIK type is java.lang.String and its format is the MIME type for vCard, e.g text/x-vcard. There are variations, though - http://filext.com/detaillist.php?extdetail=VCF
Also, note the issue below:
"If you receive a vCard file over OBEX (Infrared or Bluetooth object push), the device will notice it. The file arrives in the Messaging Inbox, and you can open it. If you store a VCF file in the file system and try opening it using File Manager, the system will not recognize it as a vCard object."
Hope it helps,
BR,
Juarez Jr
Last edited by juarezjunior; 2006-05-06 at 20:57.
Thanks Juarez,
I dont need to bother about the device right now cos im using an emulator to verify my code....
i used the setHeader() as u told me....
but as u may know in Bluejacking, we send a business card without a number, how can i detect that? by extracting different fields of the business card!
for this i need to know the format in which a business card is sent...
i hope u understand my problem more clearly now.
pls reply back asap
have downloaded the coding from nokia.,forum ...ie obex bussiness card exchange ....i run it in N82 IT SHOWS NOTHING I DIDNT EVEN DISPLAY THE ACTIVE DEVICES ....pls help me.......if u have code means pls send me in j2me
j2me_blue, please, let us continue in with your other post …