You Are Here:

Community: Developer Discussion Boards

#1 Old Lightbulb Is it possible to create a something like a business card - 2007-04-25, 12:37

Join Date: Jul 2005
Posts: 89
Send a message via Yahoo to jinda007
jinda007's Avatar
jinda007
Offline
Regular Contributor
programatically from a MIDlet ?

This is like creating something like a receipt from a MIDlet dynamically.

Is this possible? if yes, any leads/clues on how todo this?

thanks .
Reply With Quote

#2 Old Re: Is it possible to create a something like a business card - 2007-04-25, 14:09

Join Date: Oct 2006
Posts: 17
thefrozenrose
Offline
Registered User
yes you can create business cards. Use fileoutputstream and create a file with a .vcf extension.
Check out this link to see how to write a bussiness card.
http://affix.sourceforge.net/howto.shtml

Hope this helps
Reply With Quote

#3 Old Re: Is it possible to create a something like a business card - 2007-04-25, 14:16

Join Date: Jul 2005
Posts: 89
Send a message via Yahoo to jinda007
jinda007's Avatar
jinda007
Offline
Regular Contributor
Quote:
Originally Posted by thefrozenrose
yes you can create business cards. Use fileoutputstream and create a file with a .vcf extension.
Check out this link to see how to write a bussiness card.
http://affix.sourceforge.net/howto.shtml

Hope this helps
Thanks frozen rose. But what i want to know now is how do you send it from the java program(MIDlet) to another phone? you can't send it as normal sms can u?
Reply With Quote

#4 Old Re: Is it possible to create a something like a business card - 2007-04-25, 14:29

Join Date: Oct 2006
Posts: 17
thefrozenrose
Offline
Registered User
If you create a .vcf file that contains the data of a business card then you can send it via bluetooth by opening an input stream and reading the file and send it byte by byte over an outputstream that is opened to the other device.

First you need to discover the device, then discover the services and find the OBEX push service. Then send the file over that profile.

As for the SMS, I think you need a special program to encode the vcard so that it can be sent over SMS.

Hope this helps
Reply With Quote

#5 Old Re: Is it possible to create a something like a business card - 2007-04-25, 14:33

Join Date: Jul 2005
Posts: 89
Send a message via Yahoo to jinda007
jinda007's Avatar
jinda007
Offline
Regular Contributor
Quote:
Originally Posted by thefrozenrose
As for the SMS, I think you need a special program to encode the vcard so that it can be sent over SMS.

Hope this helps
Yea it helps to an extent. Forgive my funny question above, Actually i know it can be sent via bluetooth, but what i want is for it to be sent via sms/mms/wap push so another user say in another state/country can receive it and then use it for the purpose its intended for.
Now, doing this programmatically is what i need. :-)
Reply With Quote

#6 Old Re: Is it possible to create a something like a business card - 2007-04-25, 14:43

Join Date: Oct 2006
Posts: 17
thefrozenrose
Offline
Registered User
OK. First of all you need to write the business card e.g.

textResponse = "BEGIN:VCARD\r\nVERSION:2.1\r\nN";
if (unicodeFlag) {
textResponse += ";CHARSET=UTF-8";
}
textResponse += ":";
textResponse += document.forms[0].vCardName.value;
textResponse += "\r\nTEL;PREF:";
textResponse += document.forms[0].vCardPhone.value;
textResponse += "\r\nEND:VCARD\r\n";

Then for each character, get is decimal value and then convert it to hexedecimal.

for (var i = 0; (!error && (i < textResponse.length)); i++) {
var tempStr = decToHexUTF8(textResponse.charCodeAt(i));
hexText = hexText + tempStr;
}
After you have completed this process, put all the hexedecimal values in an SMS and send it over.
The code above is taken from the program NowSMS from the file Send WAP vCard.htm
www.nowsms.com

Good luck
Reply With Quote

#7 Old Thumbs up Re: Is it possible to create a something like a business card - 2007-04-25, 15:30

Join Date: Jul 2005
Posts: 89
Send a message via Yahoo to jinda007
jinda007's Avatar
jinda007
Offline
Regular Contributor
noice man! noice!!

Thanks i will get on this and get back to you on it. **thumbsup**
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 Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Easy way to create preinstall application (PA from SA) Leanid Symbian Tools & SDKs 4 2008-07-14 10:00
Internal Mifare card 6131 tdelazzari Near Field Communication 4 2007-08-23 16:24
Card not inserted windows CE 3.0 koenjo Multimodecards 2 2004-02-10 08:30
Compact Business Card format ivoatnokia Smart Messaging 1 2002-05-14 09:09
Business Card and Calendar specification nkn_knockia Smart Messaging 1 2001-11-08 16:36

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 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ