×

Discussion Board

Results 1 to 12 of 12
  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    384

    Question How to get the highlighted contact details

    Hello All,
    I want to know which item is currently highlighted in contacts lists.
    i.e i want to get details of the current highlighted contacts.
    I m able to read all contacts from the list.but i dont know hw can i get the informaion of current highlighted item.

    Can Anyone please help me in this?

  2. #2
    Super Contributor
    Join Date
    Jul 2007
    Location
    Beijing, China
    Posts
    538

    Re: How to get the highlighted contact details


  3. #3
    Registered User
    Join Date
    Nov 2007
    Posts
    384

    Re: How to get the highlighted contact details

    Quote Originally Posted by JackSu View Post
    Thanks brother,

    But i think i have nt properly explained my requirement.
    Now will try to explain it properly.
    suppose i m on my phone contact list.
    now here i hv highlihted a item.

    now i want to get informatin abt that item.

    pls remember tht this contact list is nt mine its phone inbuild contact list.

    hope u understand it brother.

    Can anyone else have an answer?

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,752

    Re: How to get the highlighted contact details

    According to an other thread, you might get the related API via API partnering (http://wiki.forum.nokia.com/index.ph...nering_Program) starting from S60 3rd FP2. For some reason it is not available for earlier releases.

  5. #5
    Registered User
    Join Date
    Nov 2007
    Posts
    384

    Re: How to get the highlighted contact details

    Quote Originally Posted by wizard_hu_ View Post
    According to an other thread, you might get the related API via API partnering (http://wiki.forum.nokia.com/index.ph...nering_Program) starting from S60 3rd FP2. For some reason it is not available for earlier releases.
    thanks brother.

  6. #6
    Registered User
    Join Date
    Nov 2007
    Posts
    384

    Question Re: How to get the highlighted contact details

    DO any one else have some suggstion s for this?

    without using API parteneringg.

  7. #7
    Registered User
    Join Date
    Nov 2007
    Posts
    384

    Question Re: How to get the highlighted contact details

    Can Anybody atleast tell me how can i recieved events from contactlist.?

    Events which are generted when i move up and down in contact list.

    Please help,,,,,,,

  8. #8
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,752

    Re: How to get the highlighted contact details

    You can always go for hacks like key capturing (just search for capture key in the Wiki). Then you can check the contents of the screen to find out what the user is doing - it should not be as complex as a full OCR implementation, because you can get hints from the contacts database about what to check for.
    But it is still not easy of course.

  9. #9
    Regular Contributor
    Join Date
    Feb 2008
    Posts
    252

    Re: How to get the highlighted contact details

    hello dinesh and wizard....

    i am looking for the same thing also...

    i have used some apis like.

    Code:
    TContactItemId itemid =	iContactDb->GetCurrentItem();
    iContactDb is the default database.

    here i am getting the -1 itemid value....I am unable to understand from the sdk what exactly iContactDb->GetCurrentItem() does.

    and

    Code:
    TContactItemId ownCardId = iContactDb->OwnCardId();
        CContactItem* contact = NULL;
       contact = iContactDb->ReadContactL(ownCardId);
         int indexvalue = contact->CardFields().Find(KUidContactFieldGivenName);
    it freeze on line contact = iContactDb->ReadContactL(ownCardId);
    i am cofused according to the sdk it should work for getting the current contact item.


    please be helpfull for me ....
    what the above apis does ..is they are used for the same purpose or they do something else...???

  10. #10
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,752

    Re: How to get the highlighted contact details

    iContactDb is your own instance of the database/view. Thus it will report the item you (your code) have navigated to. The default is -1 (KNullContactId).

    EDIT:
    Which part of its description
    Quote Originally Posted by SDK Help
    Gets the ID of the current item, as set by SetCurrentItem(). The current item ID is initialised to KNullContactId when the database is opened
    is the one requiring further explanation?

  11. #11
    Registered User
    Join Date
    Nov 2007
    Posts
    384

    Question Re: How to get the highlighted contact details

    Quote Originally Posted by wizard_hu_ View Post
    You can always go for hacks like key capturing (just search for capture key in the Wiki). Then you can check the contents of the screen to find out what the user is doing - it should not be as complex as a full OCR implementation, because you can get hints from the contacts database about what to check for.
    But it is still not easy of course.
    hi wizard hu,

    can u be specific and throw some more light on this?

    as per i get u r saying me tht i need to capture the events globally.
    and than find out if contact list application is in foreground or not.

    and than do the things accordingly.

  12. #12
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,752

    Re: How to get the highlighted contact details

    Tracking the foreground application is also documented in the Wiki, just search for foreground.
    However after that comes the problematic part: you have to find out which contact has the focus, based on the contents of the screen. Although you can definitely benefit from catching all possible keyboard events (and practically feed them to a "shadow contact book" maintained by your application), thus you can have some idea what to expect to be found on the screen, in order to go for sure you will still have to capture the contents of the screen, and match at least a part of it to your shadow copy. Although it should be both faster and easier than doing full OCR, it still takes some time and requires processing power.

Similar Threads

  1. Contact details of Nokia - Development
    By trine-entertainment in forum Audio
    Replies: 2
    Last Post: 2010-04-12, 16:17
  2. Viewing Contact Details and Identifying selected field
    By chintanshah_79 in forum Symbian
    Replies: 5
    Last Post: 2008-10-29, 13:25
  3. contact database change event details
    By rsajithali in forum Symbian
    Replies: 9
    Last Post: 2004-08-17, 00:55
  4. Contact details of Nokia - Development
    By trine-entertainment in forum General Development Questions
    Replies: 0
    Last Post: 2004-05-21, 10:54
  5. Contact details of Nokia - Development
    By trine-entertainment in forum Symbian
    Replies: 0
    Last Post: 2004-05-21, 10:52

Posting Permissions

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