×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Jul 2005
    Posts
    89

    Lightbulb Is it possible to create a something like a business card

    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 .

  2. #2
    Registered User
    Join Date
    Oct 2006
    Posts
    17

    Re: Is it possible to create a something like a business card

    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

  3. #3
    Regular Contributor
    Join Date
    Jul 2005
    Posts
    89

    Re: Is it possible to create a something like a business card

    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?

  4. #4
    Registered User
    Join Date
    Oct 2006
    Posts
    17

    Re: Is it possible to create a something like a business card

    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

  5. #5
    Regular Contributor
    Join Date
    Jul 2005
    Posts
    89

    Re: Is it possible to create a something like a business card

    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. :-)

  6. #6
    Registered User
    Join Date
    Oct 2006
    Posts
    17

    Re: Is it possible to create a something like a business card

    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

  7. #7
    Regular Contributor
    Join Date
    Jul 2005
    Posts
    89

    Thumbs up Re: Is it possible to create a something like a business card

    noice man! noice!!

    Thanks i will get on this and get back to you on it. **thumbsup**

Similar Threads

  1. Easy way to create preinstall application (PA from SA)
    By Leanid in forum Symbian Tools & SDKs
    Replies: 4
    Last Post: 2008-07-14, 09:00
  2. Internal Mifare card 6131
    By tdelazzari in forum Near Field Communication
    Replies: 4
    Last Post: 2007-08-23, 15:24
  3. Card not inserted windows CE 3.0
    By koenjo in forum Multimodecards
    Replies: 2
    Last Post: 2004-02-10, 07:30
  4. Compact Business Card format
    By ivoatnokia in forum Smart Messaging
    Replies: 1
    Last Post: 2002-05-14, 08:09
  5. Business Card and Calendar specification
    By nkn_knockia in forum Smart Messaging
    Replies: 1
    Last Post: 2001-11-08, 15:36

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×