Problem with "correspondence with Contact" using BlackBerryContactList API in v4.2.0 Perle

Hi all

1. work on (BB Pearl 8100 Simulator) version is v4.2.02.

2 opportunity BB JDE v4.2.0

3A signature permissions

4. the request is:

I tested Simulator only.

Opportunity API - BlackBerryContactList.items (strPhoneNumber)

I have a phone number with "12345", if I said Dáil with the same number with ' 12, 123, 234, 345 "or anything what a game atleast 2 or 3 digits API above that the contact is exist."» It must match when I dail with number '12345' but why is - that behave like that?

That's the problem with v4.2.0 or do I have to use different APIs

Please help me on this.

Here's something that I just created for you, probably does not compile, but you get the idea.

Note that you must test this code in 4.6, I think that there is a problem experienced with obtaining the phone number - a funny character is inserted in it. You may find reference to this problem if you search around the forum.  But test your code and see what you see.

I don't understand what you mean by:

«Note: for the PIMItem, I can spend either MOBILE/HOME/HOME2/WORK/WORK2 something should be to create dynamically PIMItem.»

Here is the code, no guarantee, I hope useful.

Enumeration enumerate = bbContactList.items(number);
BlackBerryContact matchingContact = null;

//iterate through contacts
while (enumerate.hasMoreElements() && matchingContact == null) {

    // Extract all telephone numbers and check these
    BlackBerryContact bbContact = (BlackBerryContact)enumerate.nextElement();

    for ( int atrCount = 0; atrCount < bbContact.countValues(BlackBerryContact.TEL); ++atrCount) {
        String numberToMatch = bbContact.getString(BlackBerryContact.TEL, atrCount);
        if ( numberToMatch != null &&
             numberToMatch.equals(number) ) {
            matchingContact = bbContact;
        }
    }
}

Edit:

Adding a "pause:" after "matchingContact = bbContact;" could save some processing too.

Tags: BlackBerry Developers

Similar Questions

  • M45 S351 problems with scrolling using the touchpad

    I have some problems with scrolling with the touchpad. In some applications, like Mozilla Thunderbird, the touchpad scrolling does not at all! If I contact the right side of the touchpad by finger in Thunderbird, I see the label of Scroll on the screen, but no scrolling occurs. What is the problem? In Opera, I need to click on the browser page to 'activate' the touchpad scrolling and it also irritates cause in IE I do not have such problems: I have lunch just Explorer and scrolling of the works from the beginning... How to solve this problem?

    [Edited by: admin on August 29, 2006 06:52]

    Fix for that is unknown to me, but it turns out that the unit has been tested only with Microsoft products (Designed for Microsoft WXP label applied on the device) and not with other third-party software of the part. This function is not only an example. There are many of them. Please don t see this as a problem.

    On this path, I will not say that you MUST use just preinstalled stuff but there are many things that you have to live with.

    Perhaps someone else knows more about it.

    Good bye

  • Problem with contact form

    I don't have the same experience in the Web design, but I create a using Adobe Muse. Everything works on the site expect Web contact form. If I use a gmail account I get the form but or my domain email I get nothing. I am in contact Godaddy for help but they don't know what to do...

    The domain is ensmarble.com. Can someone help on this topic?

    What should I do or how should I solve this problem?

    Thank you.

    Hi filiper79629728,

    There is an easy solution if you use GoDaddy's Web hosting.  Just a warning, this only works if you use GoDaddy Web hosting and forms of the Muse.  This isn't a problem with Muse for as long as it is a setting that needs to be adjusted on all that the host you are using.

    1. Place the shape in the Muse. Make sure to add the correct settings, that is, the e-mail address that will receive the forms.
    2. Next step is to navigate to your cPanel on GoDaddy.  This is where you manage your web hosting.
    3. On the main page of cPanel, scroll up to where it says ": Email".
    4. Click on "MX", which is located just below the 'accounts '.  This is the mail server setting.  By default, GoDaddy assume you are using a GoDaddy mail account.
    5. Make sure "Remote mail server" is checked on and that "Local mail server" is turned off.
    6. Your form should now be functional.

    The problem with the forms of the Muse and GoDaddy is that GoDaddy assumes that you will welcome your emails via GoDaddy.  If you have configured an e-mail address for your shape in the Muse that isn't an e-mail address hosted GoDaddy, GoDaddy and then do not accept by default. You must give permission to GoDaddy to send a form to what GoDaddy considers that an email "at a distance".

    I hope this works for anyone who has struggled with form when using of Muse forms that are hosted on GoDaddy servers.

    Thank you

    Ankush.

  • Problem with Hotmail using Firefox

    First of all, I am aware that this problem has happened to other people. They have different levels of success with different solutions. Thing is, at this moment, none of them work for me.

    I have Firefox 12.0 and starting yesterday I can access my Hotmail account, no problem, but it does not save the clicks in the e-mail domain. I can sort of browsing around, but I can't read emails; I can't send e-mail messages; and I end up having to use Internet Explorer.

    It's happened before, a couple of months. At the time, what worked was using Hotmail with an HTTPS connection. Worked like a charm.

    Now, it does not work. Neither clear cache my story or my cookies. Neither fact restart Firefox in safe mode, i.e. with all disabled add-ons. So I'm at the end of my rope, because nobody seems to have any other advice.

    The only thing I can think of who might be involved was running an MicrosoftFixIt program, which sets out what seems to be a recurring error for many users (sometimes Windows Update would list not updated). I did a couple of days, and yesterday I had this problem with Firefox. I had done once before, and well I'm not sure I * think * it is at the same time I got my first issue of Hotmail.

    Outside the info in troubleshooting information, all I have to add is that I use Windows 7 Ultimate.

    Any help would be appreciated. See you soon.

    the details of the system, you have presented that it seems you have the plugin pdf foxit reader on your system - it is known to cause problems with hotmail since firefox 12. Disable it in firefox > addons > plugins until there an update by foxit, which solves the problem

  • Amazon Kindle on Surface - problem with highlighting using pen

    When I try to use the (original) stylus Surface Pro with Amazon 80% of the time when I select something in a book, the Surface Pro jumps as if by magic to a different page.  This problem is reproducible constantly and is not serious if the app or browser of the Kindle version.

    What is my pen?  I have yet another defective Surface Pro?

    Nothing but trouble with my Pro Surface.  This is my second.  I wish that Microsoft just give me a replacement Surface Pro 2 instead please.

    It overheated and now Kindle is not working properly.

    What a nuisance with this overpriced, overheating, is only partially functional hardware.

    Anyone else have this problem with Kindle on Surface Pro?

    Respectfully,.

    Joshua Lieder

    I got a tip from a friend who has a Surface and noted that the latest versions of the Amazon Kindle do not always work with the pen from the digitizer.  I downloaded a version of work much earlier of the Amazon Kindle, and everything seems to be better.  I go to work and struggle with this material.  I think my return period has spent too much anyway.  Sigh.

  • Problem with contact form in German, Polish Adobe Muse site

    Hi all, I have problem with form in the German-language site. I made the website in German language ( NRW Systemhaus FortiNet |) "eSafety" - Solutions | Low prices protection! ) in Polish (Poland) version of Adobe Muse. When I fill out the contact form on this site and I want to send there is "server error". Thougt Polish Polish language sites servers work well (www.esafety-solutions.pl). Server (1 & 1) provider says I have problem with a code, but not with the server. Can you help me?

    Please check the steps mentioned in this document for troubleshooting:

    https://forums.Adobe.com/docs/doc-3581

    Thank you

    Sanjit

  • Problem with Contact form on Business Catalyst - Muse CC

    Hello

    I created a website with Muse CC, then I host them on Adobe Business Catalyst with Subscription Plan Web hosting a 6euros.

    My problem: I can not retrieve mails sent to my contact form...

    But on my admin and wrote that I received the e-mail from three... Can you help me?

    Thank you

    Problem solved!

    Contact form doesn't work with @ Hotmail.com, you must create a @gmail account.

  • problem with the use of the model

    Hello

    I use Photoshop CC and all the time I have a problem with the help of veneer of reason. In fact, I can't use any template, because when I opened the window of boss, there is always this same situation-> window does not open properly /It is the visible part of the window and when I pressed on it do not bosses see / so I can't use any model - printscreen below :

    sample.jpg

    How can I solve this problem?

    Try resetting your preferences.

  • Problems with the use of the Tablet

    Flash Problem.PNG

    I have recently downloaded the new update, as well as restarted the trial. Whenever I try to use my tablet, he made a line and start the drawing at the end of it, as shown above. In addition, whenever something pops up, such as the box 'save or throw?', I can not click on one of the buttons because it will allow me, I had problems with this in my other trial as well. I would like to help solve these problems, thank you.

    Hi all

    The problem associated with the brush and the pencil drawing in Flash Professional CC 2015 configuration dual monitor with Wacom devices has been fixed in the latest update. Please update Flash Professional CC 2015 v15.0.1.179.

    Rgds,

    Mukesh

  • Problem with Script using New() to create a #Vectorshape

    Hello

    I'm having a problem with a movie in a movie script, I build and I can't understand why.

    The unique film script, developed by JC in 2004, is reproduced below. It works perfectly in a film in itself. But I need to integrate it into a sequence exists in which the other sprites and behaviour must co-exist.

    The problem I see is that George is created with the new command (can be seen in the message using window put George), but it won't allow attachment of gMem.regPoint, gMem.centerRegPointand so on. These errors any return.

    I would also be open to another solution to the problem. What I have to do is to create rectangles which represent a plan view of a roof on an underlying grid and then be able to slide and place other images on it (it's not a game for training purposes).

    I use MX2004 on a PC. Any help, greatly appreciated.

    Rod Wolford

    ------------------------------------------------------------------------------------------ --

    George overall, gCount, gNum, gLoc, gCreateVert, gMemNum

    on prepareMovie
    clearGlobals()
    _movie.puppetTempo (60)
    gCreateVert = False
    gMemNum = 5
    end

    on mouseDown
    If not (gCreateVert) then
    George = new (#vectorShape, Member gMemNum of castLib 1)
    gMemNum = gMemNum + 1
    gMem.regPoint = point (0,0)
    gMem.centerRegPoint = False
    gMem.closed = False
    gMem.antialias = True
    gMem.strokeWidth = 0.25
    gMem.strokeColor = rgb (0,0,0)
    gNum = getFreeChannel()
    channel (gNum) .makeScriptedSprite (George, point (0,0))
    Sprite (gNum) .encre = 36
    gCount = 0
    gCreateVert = True
    end if

    If gCreateVert then

    If the doubleClick may
    gCreateVert = False
    gCount = gCount - 1
    gMem.deleteVertex (gCount)
    gMem.closed = True
    gMem.fillMode = #solid
    gMem.fillColor = rgb (random (256) - 1, random (256) - 1, random (256) - 1)
    gFinished = True
    output
    end if

    gCount = gCount + 1
    gMem.addVertex (gCount, the mouseLoc)

    gCount = gCount + 1
    gMem.addVertex (gCount, the mouseLoc)
    gLoc = the mouseLoc

    end if

    end

    on enterFrame

    If gCreateVert then

    gMem.moveVertex (gCount, the mouseH - gLoc [1], the mouseV - gLoc [2])
    theLoc = (gMem.vertexList) [gCount] [1]

    If not (theLoc = the mouseLoc) then
    gMem.moveVertex (gCount, the mouseH - theLoc [1], the mouseV - theLoc [2])
    end if

    gLoc = the mouseLoc

    end if
    end

    on stopMovie
    theCount = castLib (1).member.count
    Repeat with i = 1 to theCount
    If the Member (i) game = #vectorShape then member (i) .erase)
    end repeat
    end

    on getFreeChannel

    Repeat with i = 1 to the lastChannel
    If sprite (i).member.type = #empty then
    aNum = i
    output of repetition
    end if
    end repeat

    return aNum

    end

    While I have not read any of your script, try to replace

    George = new (#vectorShape, Member gMemNum of castLib 1)

    with

    George = _movie.newMember (#vectorShape, Member gMemNum of castLib 1)

    It is possible that the film you want to integrate that into a script #movie with a #new Manager, who must have been typed as a script #parent

  • Major problem with transparency using Flash Player 11 on IE 9 with Intel HD graphics card

    There are some problems with Flash Player 11,0,1,152 with Intel HD graphics card when using Internet Explorer 9 with hardware acceleration enabled.

    Transparencies are not working!

    They appear just like the black areas on the page when wmode = "transparent".

    See my bug for details, test URL and screenshots.

    I logged a bug:

    https://bugs.Adobe.com/jira/browse/ASC-4370

    I've also seen a few similar posts:

    http://forums.Adobe.com/message/3992938

    http://forums.Adobe.com/message/3992736

    http://forums.Adobe.com/message/3992735

    To work around this problem, you can disable hardware acceleration in the settings of IE9 to prevent this, but performance is terrible and this is not a solution.

    Can someone from Adobe please tell me when this is likely to be resolved - this is a pretty catestrophic bug!

    Everyone knows this?

    Thank you

    Luke

    Transparency bug has been fixed in 11.1.102.55 to today release so please check if your problem still exists or resolved. It is useful if you update result on above bugs.

  • Problem with contact form on mobile zoom layout

    Hey there,

    I don't know how to get around this problem yet. When I use a contact form on a mobile device, my Zoom window to enlarge the entry fields. This makes it difficult to use because pinch out does not work and after hitting "submit" on the form, in which you find yourself watching a zoomed layout. Is there a way to prevent the zoom?

    I can provide a link if necessary, do not know if this is specific to my site or a broader issue.

    Thank you
    Alex

    I just found out that if the font size in the input field is set to 16px, that it will not automatically zoom. That seems to work for me now, always curious, if there is another way around this.

  • BlackBerry smartphone Bold 9000 - problem with "contacts".

    Hey, I have problems to access the 'Contacts '. It cannot add new Contact. What should I do? Thank you very much!

    In the past a few days a week, have you upgraded all messaging like AIM, Yahoo, or MSN/Live Messenger apps?

    If so, remove one or ones that you upgraded to the device (Options > Advanced > Applications), and you should be ok.

    If this isn't the case, please let us know.

  • Healthcare.gov suggest IE or Chrome. All the reports of problems with Firefox using Healthcare.gov?

    When I get to the point to enter my contact information and click on continue system errors and not move forward. On the chat line with tech support to Healthcare.gov suggested IE or Chrome. Other users of Firefox has had similar experiences. If so, what was your resolution? Thank you. flbob

    You may need to enable cookies from third party if the parameter visited does not work.

    • Tools > Options > privacy > Firefox will be: "use the custom settings for history".

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode without failure.

    You can also try a new private window (which uses a separate set of cookies).

  • Problem with contact shares as part of the sharing of the family

    On his iPad, my daughter is put in place with its own Apple ID and part of my family sharing.  But I have two problems-

    (1) it doesn't seem to be an option to disable access to my contacts stored on my iCloud account correctly.  She could easily turn this installation by going to the sound settings.

    (2) for sending an email or an iMessage she gets suggestions for my contacts.  She just send an email to one of my business contacts.

    I have been searching online for a solution and tried different methods for how to advance this broad but without a bit of luck.  There are a lot of messages, but none that offer a solution.

    The only solution is to migrate my contacts to iCloud?  It would be a lot of time because they are shared between multiple Macs.

    Come on Apple!  It's really annoying.

    Assuming that these contacts are not in the shared group and are considered to be 'your '.

    (1)... If she doesn't have your password, it should not be able to access your iCloud account or your contacts.

    (2)... even.

    Looks like she was using your Apple ID and password at a given time, and your contacts are synchronized on his iPad. When she then signed with its own Apple ID, the choice was made to merge the contacts already on his iPad, with all new contacts that she created.

    If Yes, go to his phone now and remove these contacts that are "yours".

    Apple has not 'do '.

Maybe you are looking for

  • Update Facebook on my iphone

    Update Facebook on my iphone wants the apple id and password to the former owner of my iphone What can I please?

  • 6 - 1014NR envy: HP Envy 6 - 1014 upgrade to SSD prompting the Installation Windows disc

    This laptop was purchased with a Windows 7 OS pre-installed.  A year ago, I took advantage of the free upgrade to Windows 10.  No problem and so far so good.Today, I decided to upgrade my factory HDD to SSD performance.   I clone the drive HARD integ

  • Equium A100 - 027 Longlife battery

    Hello I take out a maximum use of 40mintues of my laptop when running on batteries and would like to know if it is an extended battery available, and where to find? Adrian

  • Upgrading RAM on Satellite L655

    I have the satellite L655-149 portable (core i 5 450 M) who have (2 GB 1333 MHz RAM and 1 GB 1066 MHz),I intend to upgrade (1 GB RAM) with (4 GB RAM) but I can not found (1066 MHz) it only (1333 MHz),so I read the manual of (Core i5 450M) of (http://

  • Vibrations on my Satellite L755-1 the

    There is a constant vibration around my mouse pad and it's getting boring, my laptop is only a couple of months. Maybe you know what could be the cause of it and how to fix? I have BIOS 3.60 and I can't downgrade it because my model is not on the tak