×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Mar 2010
    Posts
    78

    Post Adding a contact

    Hi,


    Currently am doing an application for adding contacts and below is my code.

    This code is working fine in Nokia. wherein case of sony ericsson it is not getting supported.

    Can you pls help me to sort out this issue?


    try {
    Contact contact = null;
    PIM pimInst = PIM.getInstance();
    contactList = (ContactList) pimInst.openPIMList(PIM.CONTACT_LIST,PIM.READ_WRITE);
    contact = contactList.createContact();

    String[] name = new String[contactList.stringArraySize(Contact.NAME)];
    name[Contact.NAME_GIVEN] = "Anu";
    name[Contact.NAME_FAMILY] = "philip";

    contact.addStringArray(Contact.NAME, Contact.ATTR_NONE,name);



    contact.commit();

    }catch (PIMException ex) {

    }
    Thanks in advance
    Anamika

  2. #2
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: Adding a contact

    What do you mean, When you say that -
    wherein case of sony ericsson it is not getting supported.
    What exactly you are pointing out?
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  3. #3
    Regular Contributor
    Join Date
    Mar 2010
    Posts
    78

    Post Re: Adding a contact

    Quote Originally Posted by raj_J2ME View Post
    What do you mean, When you say that - What exactly you are pointing out?
    Hi,

    The above code which i have pasted is working fine when i test it in a nokia phone, where the contacts is being added....but the problem is when i try to add the contact in a sony ericsson phone..can u plz say me where i went wrong.




    Thanks in advance
    veena

  4. #4
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: Adding a contact

    Quote Originally Posted by Anamika View Post
    Hi,
    but the problem is when i try to add the contact in a sony ericsson phone..can u plz say me where i went wrong.
    Thanks in advance
    veena
    I guess the similar thread is also running..Here.... and also the same thread Here...too..


    Could you try to debug the code and try to find it out that what exactly is the location of the exception by either putting the System.out.println.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. Adding contact fails
    By Emil_Gunnarsson in forum Mobile Java General
    Replies: 7
    Last Post: 2010-06-07, 11:19
  2. i am not getting the contact after adding
    By girija_epigon in forum Symbian
    Replies: 1
    Last Post: 2009-08-15, 07:46
  3. adding a new contact in S40 using java
    By oscarm in forum Mobile Java General
    Replies: 1
    Last Post: 2008-05-13, 09:01
  4. Replies: 3
    Last Post: 2007-12-06, 12:55
  5. Problem adding contact
    By jsstewart in forum Symbian
    Replies: 1
    Last Post: 2004-02-17, 13:22

Posting Permissions

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