×

Discussion Board

Results 1 to 12 of 12
  1. #1
    Registered User
    Join Date
    Oct 2013
    Location
    Oslo, Norway
    Posts
    7

    How to show name from a phonenumber-database when incoming call

    Hi

    I have a database with several thousand special phone numbers. If any of these special phone numbers makes a call to the phone, I would like the user to know that the phone number that is calling is a number in the database with special numbers.

    Windows phone has no option to run an application when the phone gets an incoming call. Therefore the only reason I can display to the user that it is a special phone number calling, is to put the phone numbers on a contact in the phone. However I cant store more than approx 10 numbers on one contact (Home 1, Home 2, Work 1 etc.) and this would require several hundred contacts.

    Anyone know a good way to solve this problem?

    Is it somehow possible to store more than 10 numbers on a contact?

    Or is it somehow possible to hide contacts, so that i could make several hundred hidden contacts that would pop up if an incoming call was from a special phone number?

    Thanks for replies!

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2013
    Location
    Dublin, Ireland
    Posts
    551

    Re: How to show name from a phonenumber-database when incoming call

    I think your suggestion of creating hundreds of contacts with 10 phone number per contact is the only way to do this - there is no special access to the phone/baseband subsystem, nor is there any way to 'extend' contacts.

  3. #3
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    511

    Re: How to show name from a phonenumber-database when incoming call

    You could add all those contacts to a GMail account or Outlook.com account. In the settings of the people hub you can select which of the accounts should regularly be shown as contacts and which shouldn't. So by adding this account the user won't really be in contact with them that much if it's hidden there.

    On a programmatic level you already mentioned. You can extended contacts in some way with contact info from your own App but this is not used (and can not be used) for phone numbers but rather things like WhatsApp or Skype.

  4. #4
    Registered User
    Join Date
    Oct 2013
    Location
    Oslo, Norway
    Posts
    7

    Re: How to show name from a phonenumber-database when incoming call

    I need this to be done programatically so it sounds like I just have to wait and hope that Microsoft will implement unlimited phone numbers on a contact (like on the iphone) in a future release of Windows Phone.

  5. #5
    Nokia Developer Champion
    Join Date
    Feb 2013
    Location
    Dublin, Ireland
    Posts
    551

    Re: How to show name from a phonenumber-database when incoming call

    Quote Originally Posted by holehenrik View Post
    I need this to be done programatically so it sounds like I just have to wait and hope that Microsoft will implement unlimited phone numbers on a contact (like on the iphone) in a future release of Windows Phone.
    Your best bet will be the Windows Phone 8.1 update due early next year. The current contacts are limited probably due to their 'template' being based on Outlook and ActiveSync/Exchange which were probably designed 20 years ago.

  6. #6
    Registered User
    Join Date
    Oct 2013
    Location
    Oslo, Norway
    Posts
    7

    Re: How to show name from a phonenumber-database when incoming call

    Solved: I can add a custom contact store and add all the contacts from the database to the list. Then I can get the user to hide the app contact store from the contacts list by unchecking the app in the contact settings.

  7. #7
    Nokia Developer Champion
    Join Date
    Feb 2013
    Location
    Dublin, Ireland
    Posts
    551

    Re: How to show name from a phonenumber-database when incoming call

    Quote Originally Posted by holehenrik View Post
    Solved: I can add a custom contact store and add all the contacts from the database to the list. Then I can get the user to hide the app contact store from the contacts list by unchecking the app in the contact settings.
    Oh good idea - I completely forgot about that, I usually think about WP7 first ;-)

    When a call comes in, does it display the correct name from the custom contact store?

  8. #8
    Registered User
    Join Date
    Oct 2013
    Location
    Oslo, Norway
    Posts
    7

    Re: How to show name from a phonenumber-database when incoming call

    Quote Originally Posted by theothernt View Post
    Oh good idea - I completely forgot about that, I usually think about WP7 first ;-)

    When a call comes in, does it display the correct name from the custom contact store?
    Yes it does.

  9. #9
    Registered User
    Join Date
    Jan 2009
    Location
    Melbourne, Australia
    Posts
    2,571

    Re: How to show name from a phonenumber-database when incoming call

    This is a very cool trick. Would it be possible for you to create a wiki article outlining the solution, and other options that won't work?

  10. #10
    Registered User
    Join Date
    Oct 2013
    Location
    Oslo, Norway
    Posts
    7

    Re: How to show name from a phonenumber-database when incoming call

    Quote Originally Posted by hamishwillee View Post
    This is a very cool trick. Would it be possible for you to create a wiki article outlining the solution, and other options that won't work?
    Sure. I can look into this.

  11. #11
    Registered User
    Join Date
    Jan 2009
    Location
    Melbourne, Australia
    Posts
    2,571

    Re: How to show name from a phonenumber-database when incoming call

    Quote Originally Posted by holehenrik View Post
    Sure. I can look into this.
    Thanks very much. When you're done, add a link and I'll subedit for you.

    FYI, this post was "featured".
    Last edited by hamishwillee; 2013-10-15 at 05:30.

  12. #12
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: How to show name from a phonenumber-database when incoming call

    holehenrik

    Location: Oslo, Norway
    Hahh, a developer, from Oslo, Norway. Hello

Similar Threads

  1. Nokia N90 RCall::Call(PhoneNumber) error -8071
    By can_bal99 in forum Symbian
    Replies: 12
    Last Post: 2009-04-13, 11:16
  2. Override Call Command of TextField.PhoneNumber
    By emc_faheem@hotmail.com in forum Mobile Java General
    Replies: 3
    Last Post: 2008-07-30, 16:44
  3. Retreiving Phonenumber from Incoming Call
    By Borriez in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-09-08, 03:15
  4. incoming SMS -> PC -> database
    By overdrive2 in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2002-08-11, 09:44
  5. Replies: 0
    Last Post: 2002-07-03, 09:55

Posting Permissions

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